For example, I want to take a weirdly formatted expression: '4.2+5 - 6'
and return this list: ['4.2', '+', '5', '-', '6]
I can return ['4.2', '5', '6']
but I don't know where to go from there.
For example, I want to take a weirdly formatted expression: '4.2+5 - 6'
and return this list: ['4.2', '+', '5', '-', '6]
I can return ['4.2', '5', '6']
but I don't know where to go from there.