Computer Science, asked by reloaded37, 30 days ago

# This function compares two numbers and returns them # in increasing order. def order_numbers(number1, number2): if number2 > number1: return number1, number2 else: return number2, number1 # 1) Fill in the blanks so the print statement displays the result # of the function call ___, ___ = order_numbers(100, 99) print(smaller, bigger)

Answers

Answered by HarishAS
13

Answer:

The blanks to be filled are (smaller, bigger) respectively.

Explanation:

This is the complete program :

def order_numbers(number1, number2):

   if number2 > number1:

       return number1, number2

   else:

       return number2, number1

(smaller, bigger) = order_numbers(100, 99)

print(smaller, bigger)

This self explanatory, Still i will explain why it is specifically (smaller,bigger).

As you can see in the end we are printing (smaller,bigger) but its not defined anywhere else in the program. This gives the idea that, it must filled those blank spaces.

Hope this helps : )

Similar questions