scratch/2021-04-19/max.py

11 lines
139 B
Python

dict = {}
for line in open("words.txt"):
word = line.strip()
final_letter = word[-1]
dict[final_letter] = word
print(dict)