Hello Sir, I am trying to learn python by watching your videos and really you are an excellent teacher. From starting I understood everything but got stuck when I reached the Binary OR operator explanation. I am from a non-technical background and not sure how those numbers are considered and how the decimal is considered as 7!!! It would be of great help if you could explain a bit about it sir. It's my humble request and it would be of great help, if you could refer me to the other videos where this was explained by you already. Thanks in advance sir🙂
@@sundeepsaradhi Thank you very much sir 🙏🙏🙏. Found you as perfect mentor after lots of searches in TH-cam 🙏🙏🙏. Thanks again sir. Can you be connected via call as well sir? I needed some guidance from you 🙏🙏🙏
sir alignment doesnot working it prints the what the value we have written e.g print("Hello",">20") if we entered the result is Hello >20 what is the issue behind it please tell plz plz plz plz plz plz plz plz plz plz plz plz sir
@@sundeepsaradhi yes sir its work thank you so much to clear my problem u are great you are the first teacher on you tube who clear problem within a day thank you sooooooooooooooo much sir thank you
Hi sir We can write binary representation of number 5 is 0000 0101 = 5 Now doing 1's compliment 1111 1010 = 250 Now we do binary representation for -6= 0000 0110 (if there is - sign we do both 1's 2's compliment) 0000 0110 1111 1001 (1's compliment) +1 (2's compliment) 1111 1010 = 250 See the 5 and -6 it have same 250 decimal representation That's only in python program When you write Code a = 5 print(~a) OUTPUT -6 I Hope You Understand Concept Sir
7/2= 3 remainder 1 3/2=1 remainder 1 1/2= 0 remainder 1 Now take the remainder from bottom 111 and he is representing all numbers with 2^7 that's is 128 so 00000111 Now in XOR 1,1 & 0,0 is 0 everything else is 1, now the conversion gives a binary 6
It should be taken when u are performing right shift and left shift operations. 8+4+2+1=15 If u r taking the values above 15 then u should take 8 digit binary code not 4 digit.
logical operators usage:
a,b,c=10,5,15
(a>b)and(ab)or(a>c) output: true
not(a>b) output: false
Thank you for your time to help us get to know the programmers. It’s great sir you are doing well.
~a , if a = 5, then answer is -6 not 250. because we need to do 1s and 2s complement on a and gets -6
for ~a output is -6
phython uses 2's complement for complenting opertion
yes the output will be -6
If a=5
~a = -a-1 =-6
Your teach very useful for beginners
thanku soo much sir best teacher till now on youtube
Hello Sir, I am trying to learn python by watching your videos and really you are an excellent teacher. From starting I understood everything but got stuck when I reached the Binary OR operator explanation. I am from a non-technical background and not sure how those numbers are considered and how the decimal is considered as 7!!! It would be of great help if you could explain a bit about it sir. It's my humble request and it would be of great help, if you could refer me to the other videos where this was explained by you already. Thanks in advance sir🙂
th-cam.com/play/PLLOxZwkBK52A2pxbcDs_Mntq0QHdS-IC8.html
@@sundeepsaradhi Thank you very much sir 🙏🙏🙏. Found you as perfect mentor after lots of searches in TH-cam 🙏🙏🙏. Thanks again sir. Can you be connected via call as well sir? I needed some guidance from you 🙏🙏🙏
Tq...Sir ur explanation is 👌👌👌
👌👌👌👌
Nice way to explain......
hi
thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
Thank you Sundeep!!! I am learning the video on python. I want to do exercises so i remember. where can i find exercises?
Awesome sir
Thanks Sir for such detailed explanation. Crystal clear !!
Sir how we can say the result is 7 in Bitwise OR. And explain to others operators also sir.
Good Explanation
nice sir upload more videos plz
or keyboard letter is | (pipe) not this ! (exclamator)
Sir your explanation is very great
Great👌👌👌👌👌👌
Thank sir
Sir,could u please do videos on c++ also...I follow all ur videos Sir, please
82 videos. Are enough for learning python programming sir
sir check (a) value
How to write algorithm and code in file sir.. And where to use that arithmetical operators..
could you please give me an example for membership operators
sir, binary representation of variables yela vastai...?
Sir... Logical OR is explained wrong .
In left shift how we get 20
in bitwise operators
I want to learn python from basic
,a>=b is true sir.how it becomes false?
Hi sir,
When u did the bit wise OR
5+3 should be 8 naa?
How come it's 7.?
Bcoz OR means addition
OR means not addition
sir, please clarify the a>>2 ?
Hi Sir
Left Shift (
Sir right shift is wrong
sir alignment doesnot working it prints the what the value we have written e.g print("Hello",">20") if we entered the result is Hello >20 what is the issue behind it please tell plz plz plz plz plz plz plz plz plz plz plz plz sir
Instead of use print use format
format("hello",">20")
Pls check the comment I have clarified in the comment
@@sundeepsaradhi yes sir its work thank you so much to clear my problem u are great
you are the first teacher on you tube who clear problem within a day
thank you sooooooooooooooo much sir
thank you
Sir yeh compliment operator wrong hai
Sir this total notes I wnat ppt
#COMPLEMENT
a = 5
print(~a)
o/p
-6,
in your video o/p is 250,please clarify me Sir?
Hi sir
We can write binary representation of number 5 is
0000 0101 = 5
Now doing 1's compliment
1111 1010 = 250
Now we do binary representation for -6=
0000 0110 (if there is - sign we do both 1's 2's compliment)
0000 0110
1111 1001 (1's compliment)
+1 (2's compliment)
1111 1010 = 250
See the 5 and -6 it have same 250 decimal representation
That's only in python program
When you write Code
a = 5
print(~a)
OUTPUT
-6
I Hope You Understand Concept Sir
Sir at 6:49 how the value is 7 and in xor operator too how we got value 6 can anywone plz help me out dint understand 🙁
7/2= 3 remainder 1
3/2=1 remainder 1
1/2= 0 remainder 1
Now take the remainder from bottom 111 and he is representing all numbers with 2^7 that's is 128 so 00000111
Now in XOR 1,1 & 0,0 is 0 everything else is 1, now the conversion gives a binary 6
@@MojoTech tq very much 😊
Nic
Bit wise operators cannot understand.for 5 why 00000101 numbers are taken .please say
It should be taken when u are performing right shift and left shift operations.
8+4+2+1=15
If u r taking the values above 15 then u should take 8 digit binary code not 4 digit.
12 digit code
128 64 32 16 8 4 2 1
0. 0. 0. 0. 0.1 0 1
So 4+1 is the answer 5
8. 4. 2. 1
1. 0. 0. 0. 1
2. 0. 0. 1. 0
3. 0. 0. 1. 1
4. 0. 1. 0. 0
5. 0. 1. 0. 1......4+1=5
6. 0. 1. 1. 0....... 4+2=6
.
.
.
.repeated up to
128+64+32+16+8+4+2+1=255
Complement for 6 is wrong
Sir Please give any example for membership operators
In
A=11
B=23
List=[11,2,3,55]
If a in list :
Print(" a is in list")
Output= a is in list
A=2
B=[3,8,2]
If a in B :
Print("a is in b")
hey sir , i need your help to to select best laptop for computer programming and other works related networking
mac or windows?
go to windows if you like to use crack version software
hey sir , i need your help to to select best laptop for computer programming
@Sagar Gupta i brought acer aspire 5 for it .. at 37k ryzen 5 SSD model .. from Amazon
Hii sir
When Logical opeartors are used, got Invalid syntax error
Bitwise operators I can't understand sir
Good Explanation