Algorithms For Dummies


TABLE 4-8 Python Membership Operators



Download 7,18 Mb.
Pdf ko'rish
bet160/651
Sana15.07.2021
Hajmi7,18 Mb.
#120357
1   ...   156   157   158   159   160   161   162   163   ...   651
Bog'liq
Algorithms

TABLE 4-8

Python Membership Operators

Operator


Description

Example


in

Determines whether the value in the left operand 

appears in the sequence found in the right operand

“Hello” in “Hello Goodbye”  

is True

not in


Determines whether the value in the left operand is 

missing from the sequence found in the right operand

“Hello” not in “Hello Goodbye”  

is False


TABLE 4-9

Python Identity Operators

Operator


Description

Example


is

Evaluates to true when the type of the value or 

expression in the right operand points to the same 

type in the left operand

type(2) is int is True

is not


Evaluates to true when the type of the value or 

expression in the right operand points to a different 

type than the value or expression in the left operand

type(2) is not int is False




76


Download 7,18 Mb.

Do'stlaringiz bilan baham:
1   ...   156   157   158   159   160   161   162   163   ...   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