All about Bit Manipulation | Function to get the bit at the ith position ; Return true if the bit is set . Otherwise return false
def getBit ( num , i ) : NEW_LINE INDENT return ( ( num & ( 1 << i ) ) != 0 ) NEW_LINE DEDENT