Added option to end program without using ^C
This commit is contained in:
@@ -27,6 +27,13 @@ while True:
|
|||||||
#Ausgabe der Übersetzung, Wort vorhanden
|
#Ausgabe der Übersetzung, Wort vorhanden
|
||||||
print("Das deutsche Wort lautet:", woerter[wort])
|
print("Das deutsche Wort lautet:", woerter[wort])
|
||||||
|
|
||||||
|
# sollen wir die Schleife/Programm beenden?
|
||||||
|
elif wort == "quit":
|
||||||
|
|
||||||
|
# Programm beenden bzw Schleife beenden
|
||||||
|
print("Wird beendet")
|
||||||
|
break
|
||||||
|
|
||||||
# Wort nicht im Dictionary
|
# Wort nicht im Dictionary
|
||||||
else:
|
else:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user