I wish to separate a string that looks like this: 'O,t'
'R,p'
'A/d'
etc.
The string will be a user's input, therefore I wish to use the join function and unpacking.
Which separator should I use? Obviously this doesn't work because there are no spaces:
user_input = 'O,t'
a,b,c = user_input.split('')
# Output should be:
# a = 'O', b = ',' , c = 't'
I want to avoid using list(user_input)
if possible.