Swapping Number in Python Programming #shorts #python #tech #tutorial #Shorts

preview_player
Показать описание
Swapping Number using arithmatic operators in python program.

Write a program to accept 2 number
and swap them without using 3rd variable.

python code for problem solving approach.
- learn python in simple way.
- first clear basic concepts.
- solve more problems and consistent practice.
#shorts
Рекомендации по теме
Комментарии
Автор

This is a data structures problem, but we learned it with C++ (uses semicolons after each line).

markarca
Автор

why anyone would want to use a 3rd variable, it's more easy to do a, b = b, a

faziarry
welcome to shbcf.ru