# 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
if ' ' in string_to_check:
print ("There is space in the string")
else:
print ("No space in the string")