Algorithms For Dummies



Download 7,18 Mb.
Pdf ko'rish
bet148/651
Sana15.07.2021
Hajmi7,18 Mb.
#120357
1   ...   144   145   146   147   148   149   150   151   ...   651
Bog'liq
Algorithms

 

»

complex number consists of a real number and an imaginary number that 

are paired together. In case you’ve completely forgotten about complex 

numbers, you can read about them at 

http://www.mathsisfun.com/

numbers/complex-numbers.html

. The imaginary part of a complex number 

always appears with a j after it. So if you want to create a complex number 

with 3 as the real part and 4 as the imaginary part, you make an assignment 

like this: 

myComplex = 3 + 4j

.

 



»

Logical arguments require Boolean values, which are named after George 

Bool. When using a Boolean value in Python, you rely on the 

bool


 type. 

A variable of this type can contain only two values: 

True

 or 


False

. You can 

assign a value by using the 

True


 or 

False


 keywords, or you can create an 

expression that defines a logical idea that equates to true or false. For 

example, you could say 

myBool = 1 > 2

, which would equate to False 

because 1 is most definitely not greater than 2.

Now that you have the basics down, it’s time to see the data types in action. The 

following paragraphs provide a quick overview of how you can work with both 

numeric and logical data in Python.


Download 7,18 Mb.

Do'stlaringiz bilan baham:
1   ...   144   145   146   147   148   149   150   151   ...   651




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2025
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish