What will be displayed by the following code?

Loading

Choose the correct option.

What will be displayed by the following code?
def f1(x = 1, y = 2):
    x = x + y
    y += 1
    print(x, y)
f1(y = 2, x = 1)

A. 44621
B. 44622
C. The program has a runtime error because x and y are not defined.
D. 44595

Leave a Comment