In this guide, we will see the python program to swap two numbers using the third variable, without using a third variable and using a function.