Accept the car price and display the road tax to be paid

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
  1. Take the car price as input through the user.
  2. Using if-else statements print the tax to be paid depending on the car price.
  3. 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
				
			

Related Articles

display 1/0 if the user gives Hello/Bye as output.

take input from the user between 1 to 7 and print the day according to the number.

Leave a Comment