#14 Python Practice Session #4 | Swapping Two Numbers using Bitwise XOR operator.

preview_player
Показать описание
Python practice session #4 | Swapping Two Numbers using Bitwise XOR operator #pythonoperators #pythonbeginner #pythoninhindi #yourcoderbuddies #coder #pythonprogramming #ycb

**Code file: -

📍 For previous lectures access "The Python Playlist"
** Link :-

📍 Swapping of two number is one of the most fundamental program written in all types of programming languages.

📍 There can be numerous ways to do this. There is one using a temporary variable, another using arithmetic operators like addition, subtraction, Multiplication and division. Another interesting method is using Bitwise XOR operator.

📍 Here we will see how to swap numbers using Bitwise XOR operator. To do this one must be familiar with XOR operator and its truth table. Once you get hang of it, this type of swapping is as easy as others were.

Time code:-
00:00 Intro
00:47 Answer to last challenge
01:22 Prerequisites
02:33 Code
08:45 Notes
08:54 Challenge
09:34 Outro

For such amazing videos, stay connected with Your Coder Buddies!! :)

📌Thanku for watching--
Keep Supporting--
👉 Follow YCB on:
Instagram:

Twitter:

Linkedin:
Рекомендации по теме
Комментарии
Автор

2 numbers ko koi aur operator jaisa ki NOT operator ya AND operator ko use karke swap nahi kar sakte kya?

srivijayanramabadhran
join shbcf.ru