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 8ec32ab commit 4ca9e04Copy full SHA for 4ca9e04
1 file changed
boolean_algebra/nand_gate.py
@@ -43,8 +43,8 @@ def n_input_nand_gate(inputs: list[int]) -> int:
43
1
44
"""
45
46
- if len(inputs) > 2:
47
- raise ValueError("Input list must contain at most two elements")
+ if len(inputs) > 1:
+ raise ValueError("Input list must contain at least two elements")
48
49
return int(not all(inputs))
50
0 commit comments