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()
相关文章
相关标签/搜索