repl.it
@Tom_Becks07/

TaxiCost

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
distance=int(input("How far are you going in km : "))
passengers=int(input("How many passengers are there : "))
cost=((distance-1)*2)+3
if passengers>=5:
  cost=cost*1.5
print("The cost of your journey will be",cost,"pounds")
Fetching token
?