title: Python partition and split
body: <p>I want to split a string with two words like "word1 word2" using split and partition and print (using a for) the words separately like:</p>
  
  <pre><code>Partition:
  word1
  word2
  
  Split:
  word1
  word2
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre><code>print("Hello World")
  name = raw_input("Type your name: ")
  
  train = 1,2
  train1 = 1,2
  print("Separation with partition: ")
  for i in train1:
      print name.partition(" ")
  
  print("Separation with split: ")
  for i in train1:
      print name.split(" ")
  </code></pre>
  
  <p>This is happening:</p>
  
  <pre class="lang-none prettyprint-override"><code>Separation with partition: 
  ('word1', ' ', 'word2')
  ('word1', ' ', 'word2')
  
  Separation with split: 
  ['word1', 'word2']
  ['word1', 'word2']
  </code></pre>