OK I just did an assignment ( self learning) now I need to do another but want to convert current code but cant see how. :(
Current code: n = 0 count = 0 user = input('Enter Numbers:\n> ') while user != 'done': try: n = n + float(user) count = count + 1 except: print('Enter Numbers or "done"') user = input('> ') avg = n/count if user == 'done': print('Total:',n) print('Count:',count) print('Average:',avg) now I need to convert my previous code to this question. I have tried many different ideas ( just a beginner ) but not working. any idea? "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 7, 2, bob, 10, and 4 and match the output below."