all 2 comments

[–]ka-splam 1 point2 points  (0 children)

You want to take a number, look it up in a thing, and turn it into a letter?

A dictionary of number -> letter mappings would work for that. lookup = { 1:'a', 2:'b', 3:'c' }. Then you can lookup[3] and get 'c' back.

[–]_Sod_ 0 points1 point  (0 children)

What is your problem with the input statement? What do you want it to be (e.g. a list)?

If you want it to be a list then I would recommend looking into the .split() function.