an and gate is a logic gate in boolean algebra which results to 1 true if both the inputs are 1 and 0 false otherwise following is the truth table of an and gate input 1 input 2 output 0 0 0 0 1 0 1 0 0 1 1 1 refer https www geeksforgeeks orglogicgatesinpython calculate and of the input values andgate0 0 0 andgate0 1 0 andgate1 0 0 andgate1 1 1 calculate and of the input values and_gate 0 0 0 and_gate 0 1 0 and_gate 1 0 0 and_gate 1 1 1
def and_gate(input_1: int, input_2: int) -> int:
    
    return int(input_1 and input_2)


if __name__ == "__main__":
    import doctest

    doctest.testmod()