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 f0b7ea4 commit c98bfe8Copy full SHA for c98bfe8
1 file changed
boolean_algebra/or_gate.py
@@ -39,6 +39,9 @@ def n_input_or_gate(inputs: list[int]) -> int:
39
>>> n_input_or_gate([1, 1, 1, 1, 1])
40
1
41
"""
42
+ if len(inputs) > 1:
43
+ raise ValueError("Input list must contain at least two elements")
44
+
45
return int(any(inputs))
46
47
0 commit comments