Python Program to Swap Two Number Without Using Third Variable #technology #cloud #amazing #amazon

preview_player
Показать описание
This swapping of two numbers in python program is very frequently asked question in interview and also it is very important program.

Before directly moving on writing the program lets understand what is our aim to achieve in this program.

Basically Swapping of number means

Suppose variable a has assigned value is 2 and the variable b has assigned value 4 then in swapping operation we will exchange the value and assign value of a i.e 2 in b and the value of b i.e. 4 in variable a.

Topics Covered:
python basic programming
python basic programming language
python tutorial
python programming language
python 3
python idle
visual studio
palindrome number
arthmatic operation in python
logical operation in python
numpy library
panda library
numpy as num
numpy python
numpy
free tutorial in python
python learning
Рекомендации по теме
Комментарии
Автор

Dude it’s so much work

Just use
x, y = y, x
Print(x)
Print(y)

chatgpt
visit shbcf.ru