Skip to content

Commit 137c79d

Browse files
committed
.
1 parent 2eb31d2 commit 137c79d

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

‎payilagam.py‎

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,29 @@
581581
# print(200<300)
582582
# print(100<500<300)
583583

584-
#Bitwise OPerator
584+
#Bitwise OPerator #No use in normal programming only used in advanced data science topics
585585

586+
# runtime : 4:30
586587
# & | ^ ~ >> <<
587588

589+
# & - AND na multiple pannanum
590+
591+
# | or symbol should ADD the value
592+
593+
# ^ XOR SAME VALUE RESULT 0 - DIFF VALUE NA 1
594+
595+
# print(4&5)
596+
# print(4|5)
597+
# print(4^5)
598+
599+
# print(bin(4)) #0100
600+
# print(bin(5)) #0101
601+
# print(bin(10)) #1010
602+
603+
# ~1010 => -(1010+1) => -(1011)=> 2**3+2**2+2**1+2**0=> 8+0+2+1=-(11)
604+
605+
# print(~no)
606+
607+
# print(10<<2)
608+
609+

0 commit comments

Comments
 (0)