how to check space in string in 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