UPDATE
This commit is contained in:
@ -0,0 +1,19 @@
|
||||
# Fahrkartenautomat
|
||||
print("Willkommen bei der DB \n Hier können Sie mit Verspätung rechnen. \n Wohin soll es gehen?")
|
||||
print("1. Erfurt \n 2. Arnstadt \n 3. Suhl")
|
||||
|
||||
erfurt=20
|
||||
arnstadt=8
|
||||
suhl=15
|
||||
|
||||
zielort=int(input("Bitte wählen sie ein Zielort aus:"))
|
||||
|
||||
if zielort == 1:
|
||||
preis=erfurt
|
||||
elif zielort == 2:
|
||||
preis=arnstadt
|
||||
elif zielort == 3:
|
||||
preis=suhl
|
||||
else:
|
||||
print("Bitte geben sie einen gültigen Wert ein.")
|
||||
exit()
|
Reference in New Issue
Block a user