title: python string split
body: <p>I am trying to recognise user typed strings such as "exit" or "add number" using this:</p>
  
  <pre><code> command, data = input('&gt;').split(" ", 1)
  </code></pre>
  
  <p>It works for two word input, but not one word of input ("need more than 1 value to unpack").</p>
  
  <p>What is the best way of accepting both one/two word inputs?</p>