This is the code I edit on an editor and compile on a shell.
If I enter the integer 19, when I print out c, it is still ['1','9']
instead of the [1,9]
I want. I tried this on the interactive interpreter instead of compiling a python file and it worked.
a = raw_input("Please enter a positive number ")
c = []
c = list(a)
map(int, c)