importrandom# inputs: x (int), y (int)
# outputs: int
# 50% returns sum of x and y, 50% returns product of x and y
defmystery_function(x,y):random_number=random.randint(0,1)ifrandom_number>0:z=x+yelse:z=x*yreturnzmystery_function(1,2)
In your Notebook
Answer the following questions
What happens when your run this code? How do you know what the result was?
Keeping the function the same, rewrite the code to print out the value that the function returns.