\' \' in word == True
I\'m writing a program that checks whether the string is a single word. Why doesn\'t this work and is there any better way to che
You can try this, and if it will find any space it will return the position where the first space is.
if mystring.find(' ') != -1: print True else: print False