# Get the first value and set the largest AND smallest to it value = int(input("Read in the first value. Enter a negative" + "to quit")) largest = value smallest = value # Get next values and as long as they are not negative, # see it they are larger than the largest or smaller than # the smallest value = int(input("Next value?")) while value >= 0 : if value > largest : largest = value elif value < smallest : smallest = value value = int(input("Next value?")) # Print the largest and smallest values print("The largest is ", largest) print("The smallest is ", smallest) print("Have a wonderful evening!! 8-)")