Important Notice:

Course Content
The Calendar Module
Library Function/Predefined Functions
0/4
Sys Module
Library Function/Predefined Functions
0/2
OS Module
Library Function/Predefined Functions
0/2
Functions in Python (Chapter-10) M3-R5
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

error: Content is protected !!