How do you think code with bitwise operators?
Background: Not a CS graduate.
Scenario: Reading this book, found a code snippet that looks like this:
# A power function in python using & and >> bitwise operators
def numpower(x, n):
res = 1
while n > 0:
if n & 1:
res...