In this python if else program, we will accept the car price of a car and display the road tax to be paid depending on the car price.
Steps to solve the program
- Take the car price as input through the user.
- Using if-else statements print the tax to be paid depending on the car price.
- Use the criteria given in the question to find the tax amount.
amount = int(input("Enter car price: "))
if amount <= 500000:
print("Tax payable: ",15000)
elif 500000 < amount <= 1000000:
print("Tax payable: ",50000)
else:
print("Tax payable: ",80000)
Output :
Enter car price: 1200000
Tax payable: 80000