The method isspace() checks whether the string consists of whitespace..
NA
str.isspace()
#!/usr/bin/python str = " "; print str.isspace() str = "This is string example....wow!!!"; print str.isspace()
When we run above program, it produces following result −
True False