boolean_algebra.nor_gate ======================== .. py:module:: boolean_algebra.nor_gate .. autoapi-nested-parse:: A NOR Gate is a logic gate in boolean algebra which results in false(0) if any of the inputs is 1, and True(1) if all inputs are 0. Following is the truth table of a NOR Gate: Truth Table of NOR Gate: | Input 1 | Input 2 | Output | | 0 | 0 | 1 | | 0 | 1 | 0 | | 1 | 0 | 0 | | 1 | 1 | 0 | Code provided by Akshaj Vishwanathan https://www.geeksforgeeks.org/logic-gates-in-python Functions --------- .. autoapisummary:: boolean_algebra.nor_gate.nor_gate boolean_algebra.nor_gate.truth_table Module Contents --------------- .. py:function:: nor_gate(input_1: int, input_2: int) -> int >>> nor_gate(0, 0) 1 >>> nor_gate(0, 1) 0 >>> nor_gate(1, 0) 0 >>> nor_gate(1, 1) 0 >>> nor_gate(0.0, 0.0) 1 >>> nor_gate(0, -7) 0 .. py:function:: truth_table(func: collections.abc.Callable) -> str >>> print(truth_table(nor_gate)) Truth Table of NOR Gate: | Input 1 | Input 2 | Output | | 0 | 0 | 1 | | 0 | 1 | 0 | | 1 | 0 | 0 | | 1 | 1 | 0 |