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. 


Expert's answer

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!

LATEST TUTORIALS
APPROVED BY CLIENTS