Dec-02-2019, 10:10 AM
(Dec-02-2019, 02:58 AM)jefsummers Wrote: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)
numberofitems = input()shouldn't that be
int(input())?