Python 3

Swap two numbers without using third variable in Python

This python program swaps two numbers using a temporary variable. To swap numbers without using extra variable see another code below.

Code:

 

Output:

6-Swap-two-numbers-without-using-third-variable-in-Python

 

Download Swap two numbers without using third variable in Python

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.