The == outweighs in, so you're really trying word == True.
>>> w = 'ab c'
>>> ' ' in w == True
1: False
>>> (' ' in w) == True
2: True
However, you don't require == True by any means. in the event that requires [something that evalutes to True or False] and ' ' in word will evalute to True or False. Thus, if ' ' in word: ... is okay:
>>> ' ' in w
3: True
Wanna become a Python expert? Come and join the python certification course and get certified.
To know more about this you can have a look at the following video tutorial:-