title: How to split a string of integers into a list of integers where the string of integers are split up into ascending numbers?
body: <p>Working on a homework question where it asks to take any given string of integers between 0 and 9, and split that in to a ascending list. For example, given a string of integers like <code>'455666777788888999999'</code>, I would like it to return <code>[4, 5, 56, 66, 77, 778, 888, 899, 999]</code> or given a string of integers like <code>'045349'</code> I would like it to return a list like <code>[0, 4, 5, 34]</code>. The next integer only has to be strictly larger than the previous integer. any integers that are not large enough to keep adding to the list of growing integers should be discarded.</p>
  
  <p>I know that with list comprehension, I can convert a string into a list of integers with something like this: <code>[int(x) for x in '455666777788888999999']</code>, but this breaks down every element in the string into indivisual elements in a list. Any help would be greatly appreciated. </p>