title: Help with Python strings
body: <p>I have a program which reads commands from a text file</p>
  
  <p>for example, the command syntax will be as follows and is a string</p>
  
  <p><code>'index command param1 param2 param3'</code></p>
  
  <p>The number of parameters is variable from 0 up to 3
  index is an integer
  command is a string
  all the params are integers</p>
  
  <p>I would like  to split them so that I have a list as follows</p>
  
  <p><code>[index,'command',params[]]</code></p>
  
  <p>What is the best way to do this?</p>
  
  <p>Thanks</p>