Skip to content

Commit a7e5eda

Browse files
author
Saksham Chawla
authored
Update not_gate.py
1 parent 0a9a860 commit a7e5eda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boolean_algebra/not_gate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def not_gate(input_1: int) -> int:
2121
0
2222
"""
2323

24-
return 1 if input_1 == 0 else 0
24+
return int(input_1 == 0)
2525

2626

2727
if __name__ == "__main__":

0 commit comments

Comments
 (0)