ABC transport company charges for a parcel as per the following tariff:
Weight Charges
Upto 5 kg Rs. 12 per Kg
For the next 10 Kg Rs. 22 per kg
Above 20 kg Rs. 32 per kg
Write a python program to calculate the charge for a parcel by taking weight of the parcel as input.
Answers
Answered by
0
Answer:
weight = int(input('What is the weight?'))
if weight < 6:
fee = 12 * weight
elif weight < 11:
fee = 22 * weight
else:
fee = 32 * weight
print(f'Final weight = {fee}')
Similar questions