Added option to end program without using ^C
This commit is contained in:
@@ -27,6 +27,13 @@ while True:
|
||||
#Ausgabe der Übersetzung, Wort vorhanden
|
||||
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
|
||||
else:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user