Verifique o espaço na string python

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