Dec-02-2019, 02:58 AM
print (" How many items do you have?") numberofitems = input() total = 0 for item in range(numberofitems): x = float(input('Enter the price £: ')) total = total + x #now print out the total in a nice formatThis creates a loop that asks for the price of each object, you will then need to add the code for formatting the sum (total)