[ Ссылка ]
Checking for conditions of string to get Boolean outputs as True or False by using methods.
isalnum method can be used to check if string contains only chars and numbers. No other special chars is allowed. Output is true if conditions are meet , false otherwise.
Isalpha method will check if the string contains only char or not
isalnum()
Check if all chars are alphanumeric in a string
isalpha()
Check if all chars are alphabets in a string
isdecimal()
Check if all chars are decimal numbers in a string
isdigit()
Check if all chars are digits in a string
isidentifier()
Check if the string is identifier
islower()
Check if all chars are lower case only
isnumeric()
Check if all chars are numeric
isprintable()
Check if all chars are printable or not
isspace()
Check if all chars are whitespace or not
istitle()
Check if all words starts with upper case letters
isupper()
Check if all chars are upper case letters
Ещё видео!