+ 1
How to swap 2 numbers using python?
Need clear explanation about the code.
14 Respostas
+ 5
a, b = b, a
+ 2
And where's the explanation? :'D
Python' s so friendly to us, you only learn to truly appreciate it after you try something else...
+ 1
It is standard Python behavior. You can exchange values of more than two variables in any order. Why not to play with the following code?
a = 1
b = 2
c = 3
a, b, c = c, a, b
print (a,b,c)
+ 1
yer sure.That is possible
+ 1
Lavanya G Can you stop spamming please?
0
hiii🙋 shehan
will u teach me jdbc
0
I'm lavanya
0
what is the meaning of jbdc.I didn't get it lavanya
0
java database
0
could u contact me privately
0
ssry
0
its
0
jdbc
0
what??