title: Reading a text file and splitting it into single words in python
body: <p>I have this text file made up of numbers and words, for example like this - <code>09807754 18 n 03 aristocrat 0 blue_blood 0 patrician</code> and I want to split it so that each word or number will come up as a new line. </p>
  
  <p>A whitespace separator would be ideal as I would like the words with the dashes to stay connected.</p>
  
  <p>This is what I have so far: </p>
  
  <pre><code>f = open('words.txt', 'r')
  for word in f:
      print(word)
  </code></pre>
  
  <p>not really sure how to go from here, I would like this to be the output:</p>
  
  <pre><code>09807754
  18
  n
  3
  aristocrat
  ...
  </code></pre>