Write a program to swap two numbers in python. In the Python programming language, there is a program that swaps two numbers. In a Python program, this program can swap values. It is possible to change the value without using the temp variable or the third variable in the Python programming language.
x = 100 y = 200 x, y = y, x print ("after swapping") print("Value of x = ", x, " and y =", y)
Value of x = 200 and y = 100