Skip to content

Commit 5dc0dc4

Browse files
authored
remove useless bool() call (TheAlgorithms#7189)
1 parent 2058775 commit 5dc0dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boolean_algebra/norgate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def nor_gate(input_1: int, input_2: int) -> int:
2525
>>> nor_gate(0, -7)
2626
0
2727
"""
28-
return int(bool(input_1 == input_2 == 0))
28+
return int(input_1 == input_2 == 0)
2929

3030

3131
def main() -> None:

0 commit comments

Comments
 (0)