How do you make a loop that program that asks users for how many items they buy, then asks for the price of each item. I've got this:
a = input("Enter the number of different items you are purchasing")
for i in range(1,a+1):
b = input("Enter the price of item number")
c = input("Enter the quantity of this item")
However, I don't know how to make the input statements say "enter number price 1" and for the second loop "enter the price of item 2"
See Question&Answers more detail:os