Advertisement
robjones90

Untitled

Aug 29th, 2022
788
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | Source Code | 0 0
  1. import string
  2.  
  3. list_of_letters = list(string.ascii_lowercase)
  4.  
  5. my_dict = {}
  6.  
  7. count = 0
  8. for letter in list_of_letters:
  9.     count += 1
  10.     my_dict[letter] = count
  11.    
  12. print(my_dict)
  13. print()
  14. print(my_dict['b'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement