First page Back Continue Last page Overview Graphics

String Tests

s.isalnum() True, if the string is entirely composed of alphabetic and/or numeric characters

s.isalpha() True, if all characters in s are alphabetic

s.isdigit() True, if all character in s are digits

s.islower() True, if all character in s are lower case letters

s.isupper() True, if all character in s are upper case letters

s.isspace() True, if all characters in s are whitespaces

s.istitle() True, if all words in s are capitalized