On this pagePython String isspace() Function The String isspace() method returns True if the string is not empty and all characters are whitespace characters. Otherwise, it returns False. Syntax my_string.isspace() isspace() Parameters