Python Basics
Python Advanced
Python Useful References
Python Useful Resources
Selected Reading
© 2011 TutorialsPoint.COM
|
Python String isspace() Method
Description:
This method checks whether the string consists of whitespace.
Syntax:
Parameters:
Here is the detail of parameters:
Return Value:
It return true if there are only whitespace characters in the string and there is at least one character, false otherwise.
Example:
#!/usr/bin/python
str = " ";
print str.isspace();
str = "This is string example....wow!!!";
print str.isspace();
|
This will produce following result:
|
|
|