.
fest = open("est.txt", "a")
feng = open("eng.txt", "a")
while True:
word1 = input("Sisestage sõna eesti keeles: ")
word2 = input("Sisestage seda sõna inglise keeles: ")
if word1 != "" or word2 != "" or word1 != "" and word2 != "":
word1 = word1.lower()
word2 = word2.lower()
fest.write(word1 + "\n")
fest.write(word2 + "\n")
print("Uued sõnad on lisanud mängule ( EST: " + word1 + ") | ENG: " + word2 +" )")
else:
fest.close()
feng.close()
print("Viga sõnades!")
break
.
while True:
fest = open("est.txt", "a")
feng = open("eng.txt", "a")
word1 = input("Sisestage sõna eesti keeles: ")
word2 = input("Sisestage seda sõna inglise keeles: ")
if word1 != "" or word2 != "" or word1 != "" and word2 != "":
word1 = word1.lower()
word2 = word2.lower()
fest.write(word1 + "\n")
feng.write(word2 + "\n")
print("Uued sõnad on lisanud mängule ( EST: " + word1 + ") | ENG: " + word2 +" )")
else:
fest.close()
feng.close()
print("Viga sõnades!")
break