Answer
The output will be-
5
9
9
Work Step by Step
The output will be-
5
9
9
After the function is called a copy of x is passed to y and then y is updated but x is not so print(x) displays 5 and print(y) displays 9. After the function ends the value of x is updated to y which is 9 so print(x) displays 9.