Returns a Boolean stating whether the string contains only whitespace characters.
str. isspace()
bool
#TODO
For 8-bit strings, this method is locale-dependent. Returns False if string is empty.
>>> ''.isspace()
False
>>> 'abc123'.isspace()
False
>>> 'abc'.isspace()
False
>>> '123'.isspace()
False
>>> 'Abc'.isspace()
False
>>> '!@#'.isspace()
False
>>> ' '.isspace()
True
>>> 'ABC'.isspace()
Falseisalnum(), isalpha(), isdigit(), islower(), isspace(), istitle(), isupper()