Swapping two numbers

a = 10
b = 5
print(a,b)
c = a
a = b
b=c
print(a,b)

1 Like

@naveen.padimi12

correct, keep it up.

a= 20
b=30
print (a,b)
c=a
a=b
b=c
print(a,b)

@dhanashrip930

correct, keep it up.