+ 2

changing variable

a=10; b=20 not using new variable and changing a and b's value

13th Mar 2018, 10:13 AM
조예진
조예진 - avatar
2 Antworten
+ 8
a = 10 print(a) #change a value a = 5 print(a) ???
13th Mar 2018, 10:14 AM
Hatsy Rei
Hatsy Rei - avatar
+ 5
i think... he asked for swapping a, b without new variable a=a+b b=a-b a=a-b
13th Mar 2018, 10:36 AM
sayan chandra
sayan chandra - avatar