Boolean string tests
methods
- .isalpha()
- .isalnum()
- .istitle()
- .isdigit()
- .islower()
- .isupper()
- .startswith()
type str
has methods that return a Boolean (True or False) for different tests on the properties of stings.
"Hello".isapha()
out:[ ]
True
.isalpha()
returns True if all characters in the string ("Hello") are alphabetical, otherwise returns False