About Lesson
isspace():-
The isspace() method returns True if all the characters in a string are whitespaces, otherwise False.
Syntax:- string.isspace()
txt = ” “ x = txt.isspace() print(x) Output True |
txt = ” s “ x = txt.isspace() print(x) Output False |