Swap two numbers using a third variable

num_a = input(“Enter a no. in num_a:”)

num_b = input(“Enter a no. in num_b:”)

temp = num_a

num_a=num_b

print(“num_a after swapping is:”,num_a)

num_b=temp

print(“num_b after swapping is:”,temp)

1 Like

@ankitmchandak Great Work Keep it up