I have a numbers string, i.e 123956
and i would like to convert it in a list, i.e. [1,2,3,9,5,6]
?
Asked
Active
Viewed 47 times
0
-
1If it is a string, use `list("123956")` (replacing 123956 with any number string). – lyxαl Oct 14 '18 at 21:47
-
Thanks, for me this works fine: a = [int(x) for x in value] – Babar Oct 16 '18 at 16:43