- 1
Fill in the blanks to swap the variable values with one single statement. a=7 b=42 a,_b=_,_
10 Antworten
+ 7
a, b = b, a.
tuple packing and unpacking in the same logical line. I love that language!
+ 5
The answer is
a = 7
b = 42
a,b = b, a
+ 1
a,b=b,a.
+ 1
Fill in the blanks to swap the variable values with one single statement.
a = 7
b = 42
Answer :- a,b = b, a
0
Clever
0
a = 7
b = 42
a
,
b =
b
,
a
0
a, b=b,a
0
a,b=b,a
0
a,b=b,a
0
The answer is
a = 7
b = 42
a,b = b, a