We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd24874 commit 8ec32abCopy full SHA for 8ec32ab
1 file changed
boolean_algebra/nand_gate.py
@@ -42,6 +42,10 @@ def n_input_nand_gate(inputs: list[int]) -> int:
42
>>> n_input_nand_gate([1, 0, 0, 0, 0])
43
1
44
"""
45
+
46
+ if len(inputs) > 2:
47
+ raise ValueError("Input list must contain at most two elements")
48
49
return int(not all(inputs))
50
51
0 commit comments