How do you do it with zip
?
I don’t think it get much easier than
{chr(96+i):i for i in range(1,27)}
Same idea, different indizes, no magic number:
{chr(ord('a')+i):i+1 for i in range(26)}
3
solved How to solve this without using zip
How do you do it with zip
?
I don’t think it get much easier than
{chr(96+i):i for i in range(1,27)}
Same idea, different indizes, no magic number:
{chr(ord('a')+i):i+1 for i in range(26)}
3
solved How to solve this without using zip