#minofthree.py #Extracts three integer values from the user and then #determines the smallest of the three. #Extract the three values. num1 = int( raw_input( "Enter value one: " )) num2 = int( raw_input( "Enter value two: " )) num3 = int( raw_input( "Enter value three: " )) #Determine the smallest of the three with nested ifs. if num1 < num2 : if num1 < num3 : smallest = num1 else: smallest = num3 else: if num2 < num3 : smallest = num2 else: smallest = num3 #Print the results. print "The smallest value of the three is ", smallest