if ' ' in string_to_check: print ("There is space in the string") else: print ("No space in the string")