-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuber_billing.py
More file actions
39 lines (35 loc) · 753 Bytes
/
Copy pathuber_billing.py
File metadata and controls
39 lines (35 loc) · 753 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
35
36
37
38
39
def bill(d):
cost=d*7
print("cost of per kilometer is Rs.7 \n your cost for travelling is ",cost)
a=int(input("enter your place to travel from poonamalle: \n1:central\n2:retteri\n3:redhills \n"))
if(a==1):
bill(25)
elif(a==2):
bill(15)
elif(a==3):
bill(35)
else:
print("invalid")
'''
enter your place to travel from poonamalle:
1:central
2:retteri
3:redhills
1
cost of per kilometer is Rs.7
your cost for travelling is 175
enter your place to travel from poonamalle:
1:central
2:retteri
3:redhills
2
cost of per kilometer is Rs.7
your cost for travelling is 105
enter your place to travel from poonamalle:
1:central
2:retteri
3:redhills
3
cost of per kilometer is Rs.7
your cost for travelling is 245
'''