title: how to create a program that inputs a sentence and then displays each word of the sentence on a separate line in python
body: <p>how to create a program that inputs a sentence and then displays each word of the sentence on a separate line</p>
  <p>I have tried using the split function but instead it displays the words on the same line, in a list.</p>
  <p>here is my code:</p>
  <pre><code>sentence = input(&quot;Enter a sentence:&quot;)
  print(sentence.split(&quot; &quot;))
  </code></pre>