I think the output should be x = 5
, y = 3
. But, when I tried executing it in jes it shows that x=3
and y=5
.
My swap function is as follows:
def swap (x,y):
temp=x
x=y
y=temp
And from my driver function I call swap()
:
def driver():
x=3
y=5
swap(x,y)
print x
print y
I want to know why isn't the output as expected?