We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8e595e commit e9d6fa8Copy full SHA for e9d6fa8
boolean_algebra/not_gate.py
@@ -21,7 +21,7 @@ def not_gate(input_1: int) -> int:
21
0
22
"""
23
24
- return 1 if input_1 == 0 else 0
+ return int(not bool(input_1))
25
26
27
if __name__ == "__main__":
0 commit comments