+ 2
The second x in the x,y,x statement overrides the first, so it actually works logically like this: x = 7, y = 2 x = x + 10 = 17 y = y + 3 = 5 print(x, y) - output: 17, 5
23rd Jul 2019, 2:53 PM
Rincewind
Rincewind - avatar