''' Design a program that allows a user to enter 20 numbers, then displays all of the numbers, the largest number, and the smallest. ''' try: nums = [] nums.append(float(input("Enter first number: "))) max = nums[0] min = nums[0] for num in range(1,20): nums.append(float(input("Enter number "+str(num+1)))) if nums[num] > max: max = nums[num] elif nums[num] < min: min = nums[num] print("The 20 numbers entered are: ", nums) print("The maximum value is: {0:0.2f}".format(max)) print("The minimum value is: {0:0.2f}".format(min)) except: print("Last entry is invalid, please enter numeric values only")