Question: please help! i keep getting syntax error. first hw and i have no clue what im doing or if im even pointing in the right

MyLab Write a Python program, with the IDLE editor (not the IDLE shell), that will ask the user to enter the amount of a purchase. The program should then compute the state and county sales tax. Assume the state sales tax is 5 percent and the county sales tax is 2.5 percent. The program should display the amount of the purchase, the state sales tax, the county sales tax, the total sales tax, and the total of the sale (which is the sum of the amount of purchase plus the total sales tax). Test the program by running the script which will interact with the IDLE shell. Upload your working program into Canvas via the Assignment. Hint: Use the value 0.025 to represent 2.5 percent, and 0.05 to represent 5 percent. purchase_amount = float(input("Enter the amount of a purchase: ")) state_sales_tax = purchase_amount * 0.05 country_sales_tax = purchase_amount * 0.025 print("The amount of the purchase is " + str(purchase_amount)) print("The state sales tax is " + str(state_sales_tax)) print("The county sales tax is " + str(country_sales_tax)) print("The total sales tax is " + str(state_sales_tax + country_sales_tax)) print("The total of the sale is + str(purchase_amount + state_sales_tax + country_sales_tax)) Enter the amount of a purchase: 100
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
