Answers for "how to swap two variables without using third variable and default python functionality"

0

how to swap two variables without using third variable and default python functionality

a = 10
b = 20

print(a, b)

a = a + b
b = a - b
a = a - b

print(a, b)
Posted by: Guest on February-09-2022

Code answers related to "how to swap two variables without using third variable and default python functionality"

Python Answers by Framework

Browse Popular Code Answers by Language