Program to swap two numbers in Python

Today we will write a program to swap two numbers in Python, we have two ways to do it: Swap using temporary variable. Swap without using temporary variable.   Program to swap two numbers in Python using temporary variable: a = 10 b = 20 print("before swapping\na=", a, " b=", b) temp = a a … Read more