mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
remove useless bool() call (#7189)
This commit is contained in:
parent
2058775005
commit
5dc0dc4d23
|
@ -25,7 +25,7 @@ def nor_gate(input_1: int, input_2: int) -> int:
|
|||
>>> nor_gate(0, -7)
|
||||
0
|
||||
"""
|
||||
return int(bool(input_1 == input_2 == 0))
|
||||
return int(input_1 == input_2 == 0)
|
||||
|
||||
|
||||
def main() -> None:
|
||||
|
|
Loading…
Reference in New Issue
Block a user