New to python, reading a book on say a& The result is 1 b or zero, then gave a=b=9 13 results appeared 9, can have a knowledge of the man answer? This is what, if feel explain too wordy, what can recommend me to see the video
CodePudding user response:
Have a good intention?
CodePudding user response:
9=1001 13=1101
9 & amp; 13 - & gt; &=do after converted into binary Boolean and
1001 1101 -- -- -- -- -- 1001 - & gt; (9)
CodePudding user response:
Thank you good people,
CodePudding user response:
9:1001 Therefore 01
& The rule is: as 1 is 1, otherwise 0 So the result is 1001, and then turned back to decimal is 9.