Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ve = str(raw_input("tipo vehiculo: "))
- ds = str(raw_input("dia: "))
- ho = str(raw_input("horario: "))
- pa = int(raw_input("cantidad de pasajeros: "))
- HM = int(ho[0] + ho[1] + ho[3] + ho[4])
- a = 0
- if (ds == "lunes") or (ds == "martes") or (ds == "miercoles") or (ds == "jueves") or ( ds == "viernes"):
- if HM in range (730, 930) or HM in range(1730, 2000):
- if ve == "camion":
- a = 3500
- elif ve == "auto" and pa >=3:
- a = 0
- elif ve == "auto" and pa <=2:
- a = 2400
- elif HM not in range (730, 930) or HM not in range(1730, 2000):
- if ve == "camion":
- a = 2500
- elif ve == "auto" and pa >=1:
- a = 2000 - (pa)*100
- elif (ds == "sabado") or (ds == "domingo" ):
- if HM in range (830, 1100) or HM in range(1745, 2230):
- if ve == "camion":
- a = 4500
- elif ve == "auto":
- a = 4500 - 300*(pa)
- elif HM not in range (830, 1100) or ho not in range (1745, 2230):
- if ve == "camion":
- a = 3800
- elif ve == "auto":
- a = 2800
- print "Total a pagar: ", a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement