Python String Methods - isalnum(), isalpha(), isdecimal(), isdigit(), isidentifier(), isnumeric()

preview_player
Показать описание
Introduction to Python
Python String Methods - isalnum(), isalpha(), isdecimal(), isdigit(), isidentifier(), isnumeric()

isalnum() - Returns True if all characters in the string are alphanumeric
isalpha() - Returns True if all characters in the string are in the alphabet
isdecimal() - Returns True if all characters in the string are decimals
isdigit() - Returns True if all characters in the string are digits
isidentifier() - Returns True if the string is an identifier
isnumeric() - Returns True if all characters in the string are numeric

-by Yatin Jog
Рекомендации по теме