title: Split when character changes in Python
body: <p>So I have this string.</p>
  
  <pre><code>6#666#665533999
  </code></pre>
  
  <p>And I want to parse it into multiple small strings(or until the character changes) and ignoring the <code>#</code> so that I can substitute <code>6 = M or 666 = O or 9 = W</code> just like a phone's dial pad.</p>
  
  <pre><code>6#666#665533999 -&gt; 6, 666, 66, 55, 33, 999
  </code></pre>
  
  <p>So I used the <code>split('#')</code> method to remove the <code>#</code> and can't figure out what to do next.I have tried brute force methods which solves it to a certain extent but is there an easier or more elegant solution to this?</p>