title: python split string that has both spaces and dash
body: <p>I have an iteration that produces the below <code>string</code></p>
  
  <pre><code>"always - blue"
  "sometimes-yellow - red"
  "seldom - blue"
  "maybe-red - blue"
  "mostly-blue - yellow"
  </code></pre>
  
  <p>What I am trying to do is to split up the string by <code>" - "</code> </p>
  
  <p><strong>Desired Result</strong></p>
  
  <pre><code>['always', 'blue']
  ['sometimes-yellow', 'red']
  ['seldom', 'blue']
  ['maybe-red', 'blue']
  ['mostly-blue', 'yellow']
  </code></pre>
  
  <p>I have tried <code>a.split("-")</code>, and <code>a.split(" - ")</code> but this seems to split up every occasion that there is a <code>-</code>. <em>i.e.</em> <code>['sometimes-yellow', 'red']</code> is split into <code>['sometimes', 'yellow', 'red']</code>. Which is not what I want.</p>
  
  <p>How should I be splitting the string to achieve what I want? </p>