Below is a short program I'M working of from udacity.com but I can't figure out why I'M getting the value 6 from the first call to the function.
# Define a procedure, biggest, that takes three
# numbers as inputs and returns the largest of
# those three numbers.
def biggest(first, second, third):
if (first > second and third):
return first
if (second > first and third):
return second
else:
return third
print biggest(3, 6, 9)
#>>> 9
print biggest(6, 9, 3)
#>>> 9
print biggest(9, 3, 6)
#>>> 9
print biggest(3, 3, 9)
#>>> 9
print biggest(9, 3, 9)
#>>> 9