please give a python program for this attached question... i need it now please...
if you dont know then no need to answer- "i dont know"
Attachments:
Answers
Answered by
2
Answer:
dist = int(input("Enter distance in km: "))
if dist < 0:
print("Wrong input")
exit()
if dist <= 100:
fare = 15*dist
elif dist <= 300:
fare = 1500
elif dist <= 500:
fare = 4300
else:
fare = 6700
print("Fare in Rs. =", fare)
Please mark me as the brainliest
Similar questions