What is the output of the following code ?
def func(x, y, z): global s x = 10 y = 20 z = 30 s = 40 print(x, y, z, s) x, y, z, s = 1, 2, 3, 4 func(5, 10, 15)
All the values of x, y, z, s are re-assigned inside the function by the following statements
x = 10 y = 20 z = 30 s = 40
So print(x, y, z, s) prints 10 20 30 40
print(x, y, z, s)
Comment here: