Skip to content

Commit e9d6fa8

Browse files
authored
Added more readability to the return statement
1 parent f8e595e commit e9d6fa8

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(not bool(input_1))
2525

2626

2727
if __name__ == "__main__":

0 commit comments

Comments
 (0)