Exercise33(append, while-loops, def, input, for-loops)

ex33.py Convert this while-loop to a function that you can call, and replace 6 in the test (i < 6) with a variable. 注意: 如果直接amount = input(),則amount是字符,在while中不能與數字做比較會報錯,如下: 所以應該用amount = int(input()
相關文章
相關標籤/搜索