title: Pick a Random Word On a Single Line In Python?
body: <p>How would I pick a single line and pick all the words on that line and then print them to the screen using a set. This is what I have so far:</p>
  
  <pre><code>import random
  
  test = ['''
  line 1
  line 2
  line 3
  line 4
  line 5
  line 6
  ''']
  print (random.choice(test))
  </code></pre>