{"id":24612,"date":"2021-10-23T09:09:43","date_gmt":"2021-10-23T03:39:43","guid":{"rendered":"https:\/\/python-programs.com\/?p=24612"},"modified":"2021-11-05T19:13:43","modified_gmt":"2021-11-05T13:43:43","slug":"python-string-isspace-method-examples","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-string-isspace-method-examples\/","title":{"rendered":"Python String isspace() Method with Examples"},"content":{"rendered":"

In the previous article, we have discussed Python String isprintable() Method Examples<\/a>
\nisspace() Method in Python:<\/strong><\/p>\n

If the string contains only whitespace characters, the isspace() method returns True. If it does not, it returns False.<\/p>\n

Whitespace characters are characters that are used for spacing. For example, tabs, spaces, newlines, and so on.<\/p>\n

Syntax:<\/strong><\/p>\n

string.isspace()<\/pre>\n

Parameters: <\/strong>This function has no parameters.<\/p>\n

Return Value:<\/strong><\/p>\n

The isspace() method gives:<\/p>\n