Slip and Slide


#1

def flip_bit(number, n):
mask = (0b1 << n)
result = number ^ mask
return bin(result)

Can’t figure out what the problem is. Need help.


#2

figured it out myself.


#5

2 posts were split to a new topic: Slip and Slide


#6