Define a function called flip_bit that takes the inputs (number, n). Flip the nth bit (with the ones bit being the first bit) and store it in result. Return the result of calling bin(result).
mask=0b1 << n
result=number ^ mask
Can any one please tell me what is the fault?