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.
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.
Comments
Leave a comment