title: How do I print a string one word at a time in Python?
body: <p>I am trying to print a string one word per line using a loop. For example if the string is, 'I need practice', the string should print:
  I'\n'
  need'\n'
  practice</p>
  
  <p>My code so far looks like this:</p>
  
  <pre><code>phrase=input('enter a phrase: ')
    for char in phrase:
       print (char, end ='')
    if char == '':
      print('\n')
  </code></pre>
  
  <p>However, my output looks like this:</p>
  
  <p>I need practice</p>