a xnor gate is a logic gate in boolean algebra which results to 0 false if both the inputs are different and 1 true if the inputs are same it s similar to adding a not gate to an xor gate following is the truth table of a xnor gate input 1 input 2 output 0 0 1 0 1 0 1 0 0 1 1 1 refer https www geeksforgeeks orglogicgatesinpython calculate xor of the input values xnorgate0 0 1 xnorgate0 1 0 xnorgate1 0 0 xnorgate1 1 1 calculate xor of the input values xnor_gate 0 0 1 xnor_gate 0 1 0 xnor_gate 1 0 0 xnor_gate 1 1 1
def xnor_gate(input_1: int, input_2: int) -> int:
    
    return 1 if input_1 == input_2 else 0


if __name__ == "__main__":
    import doctest

    doctest.testmod()