Advertisement
angryatti

Szótár sorszámos ábécével

Apr 29th, 2022
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. import string
  2.  
  3. alphabet_string = string.ascii_uppercase
  4.  
  5. thisdict = {}
  6. i =0
  7. for alphabet in alphabet_string:
  8.     case = {alphabet_string[i]:int(i+1)}
  9.     thisdict.update(case)
  10.     i+=1
  11. print(thisdict)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement