How to create swapping program in Python
Sourabh Somani
There are three ways to create swapping program in python
First
a=5b=6temp=aa=bb=temp
a=5
b=6
temp=a
a=b
b=temp
Second
a=5b=6a=a+bb=a-ba=a-b
a=a+b
b=a-b
a=a-b
Third
a=5b=6(a,b)=(b,a)
(a,b)=(b,a)
I din’t understand please elaborate more