# isspace() is method of the <str> returns True if the string has only empty spaces print(" ".isspace()) # True print(" ".isspace()) # True print(" test".isspace()) # False print("".isspace()) # False