From a7e5eda177a11e4aaa5c236cd57ce4f321913d58 Mon Sep 17 00:00:00 2001 From: Saksham Chawla Date: Tue, 16 Apr 2024 17:09:53 +0530 Subject: [PATCH] Update not_gate.py --- boolean_algebra/not_gate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boolean_algebra/not_gate.py b/boolean_algebra/not_gate.py index cfa74cf42204..7fa3967c4d62 100644 --- a/boolean_algebra/not_gate.py +++ b/boolean_algebra/not_gate.py @@ -21,7 +21,7 @@ def not_gate(input_1: int) -> int: 0 """ - return 1 if input_1 == 0 else 0 + return int(input_1 == 0) if __name__ == "__main__":