-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaxi.py
More file actions
34 lines (27 loc) · 842 Bytes
/
Taxi.py
File metadata and controls
34 lines (27 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from threading import local
print("Hello, enter the distance you are travelling and the amount of passengers to get a price")
'''Variables'''
Pax = int(input("How many passengers are there?"))
Dist = int(input("How far are you travelling?"))
Local = input("Is your job local. Answer with yes or no")
'''End of variables
'''
if Local == "no":
print("You are now being charged a fixed price")
Dest = input("Where are you going?")
if Dest == "London":
Paxprice = Pax * 4
Fixed = 150
Nationaltotal = Paxprice + Fixed
print(Nationaltotal)
exit()
if Dest == "Manchester":
Paxprice = Pax * 5
Fixed = 125
Nationaltotal = Paxprice + Fixed
print(Nationaltotal)
exit()
PaxPri = Pax * 2
DistPrice = Dist * 1.5
Total = DistPrice + PaxPri
print(Total)