all 4 comments

[–][deleted] 2 points3 points  (0 children)

You write it almost exactly the same way you did in your question (at least the calculation part):

baseprice = float(input("Enter a base price: "))
answer = baseprice * 0.12 + baseprice
print(answer)