dictionary file

Post date: May 17, 2016 2:45:03 PM

dictonary = open("dict.txt","a")

while True:

word1 = input("Give me a word in English:")

if word1 == "exit":

break

word2 = input("Give me the word in Hungarian:")

dictonary.write(word1)

dictonary.write("\n")

dictonary.write(word2)

dictonary.write("\n")

dictonary.close()