Algorithms For Dummies


TABLE 4-5 Python Relational Operators



Download 7,18 Mb.
Pdf ko'rish
bet154/651
Sana15.07.2021
Hajmi7,18 Mb.
#120357
1   ...   150   151   152   153   154   155   156   157   ...   651
Bog'liq
Algorithms

TABLE 4-5

Python Relational Operators

Operator


Description

Example


==

Determines whether two values are equal. Notice that the relational 

operator uses two equals signs. A mistake many developers make is 

using just one equals sign, which results in one value being assigned 

to another.

1 == 2 is False

!=

Determines whether two values are not equal. Some older versions 



of Python allowed you to use the <> operator in place of the != 

operator. Using the <> operator results in an error in current 

versions of Python.

1 != 2 is True

>

Verifies that the left operand value is greater than the right 



operand value.

1 > 2 is False



<

Verifies that the left operand value is less than the right 

operand value.

1 < 2 is True

>=

Verifies that the left operand value is greater than or equal to the 



right operand value.

1 >= 2 is False



<=

Verifies that the left operand value is less than or equal to the right 

operand value.

1 <= 2 is True




CHAPTER 4


Download 7,18 Mb.

Do'stlaringiz bilan baham:
1   ...   150   151   152   153   154   155   156   157   ...   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