title: Check if space is in a string
body: <pre><code>' ' in word == True
  </code></pre>
  
  <p>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 check if a string has no spaces/is a single word..</p>