how to check if there is a space in a string python code example
Example: python is space
# 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