-
#List of prices
prices = []
sub_total = 0.0
#Iterate for 5 items
for i in range(5):
#Get the price
value = float( input(“Enter the price of item #” + str(i+1) + “:”))
#compute the sub total
sub_total = sub_total + value
#add the value to the list
prices.append(value)
#compute the tax on the sub total @ rate of 7.25%
tax = sub_total * (7.25/100)
#Now, compute the total price
total_price = sub_total + tax
print(“Sub total: ” + str(sub_total))
print(“Tax: {:0.2f}”.format(tax))
print(“Total: {:0.2f}”.format(total_price))//Output

![ф bill.py py ь Ф bill.py b #List of prices 3 prices=[] 4 subtotal 0.0 #Iterate for 5 items for i in range (5): 7 #Get the pri](https://media.cheggcdn.com/media%2F3af%2F3afc74ed-8c07-4900-8bdb-83af3ad00979%2Fphp6vjmGF.png)
use
ORPayPal Gateway not configured
ORPayPal Gateway not configured