I learning to do computer science and I'm stuck on this one. I made this code on python, my problem is everything is correct except when the answers are all with only one decimal point when the second on is 2. For example, I want the answer to be 17.50 when the output is given is 17.5. Is there a way I can fix this.
amount = float(input("Enter an amount: "))
name = input("Enter an item name: ")
for x in [5,10,15,20,25]:
final= ((amount*x)/100)
print(str(x) +"% tax on a " + str(name)+ " costing $"+ str(amount) + " is $" + str(round(final,
2)))