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())。
用for-loops and range 改写:
此时不需要incrementor。