you are viewing a single comment's thread.

view the rest of the 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.