Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # aa2zz_under676.py
- abc = [chr(z) for z in range(ord('a'),ord('z')+1)]
- def int2abc(z):
- return abc[z/26]+abc[z%26]
- def abc2int(z):
- return abc.index(z[0])*26+abc.index(z[1])
- for z in [0,1,100,200,300,400,500,600,26*25+25]:
- a = int2abc(z)
- b = abc2int(a)
- print z, a, b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement