Learn Python in One Day and Learn It Well: Python for Beginners with Hands-on Project. The only book you need to start coding in Python immediately pdfdrive com



Download 4,83 Kb.
Pdf ko'rish
bet31/37
Sana09.05.2023
Hajmi4,83 Kb.
#936471
1   ...   27   28   29   30   31   32   33   34   ...   37
Bog'liq
Learn Python in One Day and Learn It Well Python for Beginners with Hands-on Project. The only book you need to start coding in Python immediately ( PDFDrive )

isalnum()
Return true if all characters in the string are alphanumeric and there is at
least one character, false otherwise.
Alphanumeric does not include whitespaces.
[Example]
‘abcd1234’.isalnum()
=> True
‘a b c d 1 2 3 4’.isalnum()
=> False
‘abcd’.isalnum()
=> True


‘1234’.isalnum()
=> True
isalpha()
Return true if all characters in the string are alphabetic and there is at
least one character, false otherwise.
[Example]
‘abcd’.isalpha()
=> True
‘abcd1234’.isalpha()
=> False
‘1234’.isalpha()
=> False
‘a b c’.isalpha()
=> False
isdigit()
Return true if all characters in the string are digits and there is at least
one character, false otherwise.
[Example]
‘1234’.isdigit()
=> True


‘abcd1234’.isdigit()
=> False
‘abcd’.isdigit()
=> False
‘1 2 3 4’.isdigit()
=> False
islower()
Return true if all cased characters in the string are lowercase and there is
at least one cased character, false otherwise.
[Example]
‘abcd’.islower()
=> True
‘Abcd’.islower()
=> False
‘ABCD’.islower()
=> False
isspace()
Return true if there are only whitespace characters in the string and there
is at least one character, false otherwise.
[Example]


‘ ’.isspace()
=> True
‘a b’.isspace()
=> False
istitle()
Return true if the string is a titlecased string and there is at least one
character
[Example]
‘This Is A String’.istitle()
=> True
‘This is a string’.istitle()
=> False
isupper()
Return true if all cased characters in the string are uppercase and there
is at least one cased character, false otherwise.
[Example]
‘ABCD’.isupper()
=> True
‘Abcd’.isupper()
=> False
‘abcd’.isupper()


=> False
join()
Return a string in which the parameter provided is joined by a separator.
[Example]
sep = ‘-’
myTuple = (‘a’, ‘b’, ‘c’)
myList = [‘d’, ‘e’, ‘f’]
myString = “Hello World”
sep.join(myTuple)
=> ‘a-b-c’
sep.join(myTuple)
=> ‘d-e-f’
sep.join(myString)
=> ‘H-e-l-l-o- -W-o-r-l-d’’

Download 4,83 Kb.

Do'stlaringiz bilan baham:
1   ...   27   28   29   30   31   32   33   34   ...   37




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
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