youtube-code/2022-10-21-Bitwise-Operators-and-WHY-we-use-them/right.py

14 lines
156 B
Python
Raw Normal View History

2022-11-05 14:07:34 +00:00
number = 5
print(number)
print(bin(number))
number = number << 2
print(number)
print(bin(number))
number = number >> 2
print(number)
print(bin(number))