Programming for Everybody (Python)第五周的练习完成的过程中的一些感悟。
首先,作业是
5.2 Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entered, print out the largest and smallest of the numbers. If the user enters anything other than a valid number catch it with a try/except and put out an appropriate message and ignore the number. Enter the numbers from the book for problem 5.1 and Match the desired output as shown.要求输入的数据分别是4,5,bad data,7,done
最后完成的成果如下