I am trying to split a string into a list, separated by a character change, in python. I find it very difficult, but I'm sure I stopped thinking about it and skipped a possibly simple solution. Example:
'abgg22ffeeekkkk1zzabbb'
will become:
['a', 'b', 'gg', '22', 'ff', 'eee', 'kkkk', '1', 'zz', 'a', 'bbb']
source
share