asked 141k views
3 votes
Answer must be submitted in a python file (.py at the end of the file) or as python code snippet

Pretend you need to added 10% taxes to your total from a purchase


Write a program that answers this questions (What is your total?) using the input function

Take the value entered and add 10% to the total

Display the total

asked
User Supakeen
by
7.3k points

1 Answer

3 votes

Answer:

purchase_cost = float(input("What is your purchase cost? "))

tax_rate = 10/100 #(10% = 10/100)

tax = purchase_cost * tax_rate

total_cost = purchase_cost + tax

print("Total Cost = ", total_cost)

Step-by-step explanation:

answered
User Davidgyoung
by
8.1k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.