scratch/2021-04-19/max.py

11 lines
139 B
Python
Raw Normal View History

2021-04-20 00:56:49 +00:00
dict = {}
for line in open("words.txt"):
word = line.strip()
final_letter = word[-1]
dict[final_letter] = word
print(dict)