


s = "ab2"
s.isalnum() #checks if string is alpha numeric
s.isalpha() #check if string contains alphabets
s.isdigit() #checks if string contains digit
s.islower() #checks if string is only lower case
s.isupper() #checks if string is only upper case
 