-7
如何製作循環程序,詢問用戶購買了多少物品,然後詢問每件物品的價格。我有這樣的:循環程序,循環輸入
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")
不過,我不知道如何使輸入聲明說:「進入數價格1」和第二環「進入第2項的價格」
你在問我們爲你做作業嗎? – phantom 2014-10-31 21:16:37
這個問題似乎是無關緊要的,因爲Stack Overflow不是一個其他人從頭開始爲你做功課的網站。 – senshin 2014-10-31 21:16:43
在提問之前閱讀[this](http://stackoverflow.com/help/how-to-ask)。 – Sierox 2014-10-31 21:21:30