Why do I keep getting -6, 21 it should be 2, 21

Question Answered step-by-step Why do I keep getting -6, 21 it should be 2, 21 Why do I keep getting -6, 21 it should be 2, 21 Image transcription textramming home > 3.8: LAB: Smallest and largest numbers in a list 1 user_numbers = [10, 5, 3, 21, 2, -6] N 3user_input = int(input()) 4 while user_input > 0: user_numbers . append(user_input) user_input = int(input()) 89 smallest_num = min(user_numbers) 10 largest_num = max(user_numbers) 11 12 print(smallest_nu… Show more… Show more Computer Science Engineering & Technology Python Programming CSC 119 Share QuestionEmailCopy link Comments (0)