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


if __name__ == "__main__":
    import doctest

    doctest.testmod()