Skip to content

Instantly share code, notes, and snippets.

@dobrienSTJ
Created September 14, 2016 17:10
Show Gist options
  • Save dobrienSTJ/bf4fab96eab6a5cadcc41fb2a8f85a11 to your computer and use it in GitHub Desktop.
Save dobrienSTJ/bf4fab96eab6a5cadcc41fb2a8f85a11 to your computer and use it in GitHub Desktop.
STJLOL-DOB-Transport For Rush
def dublinbus():
dublinbus=input("Would you like to travel on the 33,33A or 33X")
if dublinbus=="33":
thirtythree=input("Choose to travel to Balbriggan or Lower Abbey Street")
if thirtythree==("Lower Abbey Street"):
print("Tickets will now be printed......")
elif thirtythree==("Balbriggan"):
print("Tickets will now be printed......")
else:
print("Error 404"):
elif dublinbus=="33A":
thirtythreea=input("Would you like to travel towards Swords or Skerries?")
if thirtythreea==("Skerries"):
print("Tickets will now be printed....")
elif thirtythreea==("Swords"):
print("Tickets will now be printed.....")
else:
print("Error 404"):
else:
print("Error 404")
def irishrail():
commuter=input("Would you like to travel towards Dublin Pearse or Drogheda")
if commuter=="Dublin Pearse":
print("Tickets will now be printed....")
elif commuter=="Drogheda":
print("Tickets will now be printed....")
else:
print("Error 404")
print("Welcome to Transport For Rush")
menuchoice=input("What transport system would you like to travel on")
if menuchoice=="Dublin Bus":
dublinbus()
elif menuchoice=="Irish Rail":
irishrail()
else:
("We have not added that transport system yet")
print("Thank you for using our Transport For Rush Application")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment