I am trying to create a program that calculates sales tax. I first ask the user what was the total cost of their meal. I then ask them what is the sales tax of their area in the form of:
y = input('What is the sales tax of your area? ')
I want to have a percent sign "%" at the end of the question so that the users sees the question as:
What is the sales tax of your area?_% , where the user can enter a number between the question and the percent sign (denoted by the underline).
This is what I have tried:
x = float(input("What is the cost of your meal? "))
y = input("What is the sales tax in your area? "+"%")
float(y)
y = y/100
cost = (x+(x*y))
print("The cost of your food is " + cost)