Characters to numbers

In [1]:
ord('a') - 96
Out[1]:
1
In [2]:
chr(96 + 1)
Out[2]:
'a'
In [6]:
alphabet = [chr(97 + i) for i in range(26)]

print(''.join(alphabet))
abcdefghijklmnopqrstuvwxyz