How could I split a string before any character and after any character. E.g:
x = '846a12'
How would I output:
z = ['846','a','12']
The problem in this case is I have mentioned specific character in my function (specific character: 'a' in above example). If input is different character(Let's say: 'b') my function fails. How can I deal with random characters?
Thanks.