Answer to Question #263228 in Python for prem

Question #263228

construct a python program to A taxi driver charges the bill as follows. On a fine day, Mr. Roy travels to his office by the taxi. Write a Python program to accept the kilometers traveled by Mr. Roy and calculate his taxi bill. 


1
Expert's answer
2021-11-09T04:29:38-0500
distance = float(input("Enter kilometers travelled"))
rate_per_km = 10
print("Total bill is ", str(distance*rate_per_km))

rate_per_km is not mentioned in question so i assumed it as 10 per km. We can change this value as per the demand.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS