Asking for a sequence of inputs from user python3
问题 I am working on a python exercise asking for Write Python programs that read a sequence of integer inputs and print The smallest and largest of the inputs. My code so far def smallAndLarge(): num1 = int(input("Enter a number: ")) num2 = int(input("Enter a number: ")) if num1 > num2: print(num1,"is the largest number, while",num2,"is the smallest number.") else: print(num2,"is the largest number, while",num1,"is the smallest number.") smallAndLarge() I am using def smallAndlarge(): since my