Is it possible to transform a string into a list, like this:
"5+6"
into
["5", "+", "6"]
Is it possible to transform a string into a list, like this:
"5+6"
into
["5", "+", "6"]
Using map inbuilt list creation to work
Code:
map(None,"sart")
Output:
['s', 'a', 'r', 't']
in python 3 you could make this ...
>>> s = 'bioinform'
>>> s
'bioinform'
>>> w = list(s)
>>> w
['b', 'i', 'o', 'i', 'n', 'f', 'o', 'r', 'm']
>>>
but if you give list any value will give you an error so you should restart your IDLE