import string >>> for n,x in enumerate(string.ascii_letters, start=1): exec("{0} = {1}".format(x, n))