Kizspy | Question: 44
(Choose 1 answer)
FJOVERFLOW.Com
Assume x and y are assigned as follows:
x = 5
y = -5
What is the effect of this statement:
x, y = (y, x)[-1]
A. The values of x and y are unchanged
B. Both x and y are -5
C. Both x and y are 5
D. The values of x and y are swapped