python lookup table

python

Solution

You don't need a look-up table – the expression

chr(c) - 54

(with `c` beinig the upper-case character) will do the trick.

Problem

I have a need to create a lookup table where A=10 and Z=35(B=11, C=12 and so on), what's the easiest way to accomplish this in python? I know there must be a very easy way to do it, just can't seem to find it.

Original source