Skip to content

New version with english comments #12762

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 9, 2025
commit c54f7bbc9a51f7e0b25b3f0527319da3c3aceed6
18 changes: 9 additions & 9 deletions boolean_algebra/and_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ def and_gate(input_1: int, input_2: int) -> int:


def n_and_gate(inputs: tuple) -> int:
"""
Calcul le And de la liste des nombres
binaires fournie. Nécessaire pour
implémenter une porte And à n entrées
Par exemple
>>> n_and_gate((1, 0, 1, 1, 0))
0
"""
return int(all(inputs))
"""
Calcul le And de la liste des nombres
binaires fournie. Nécessaire pour
implémenter une porte And à n entrées
Par exemple
>>> n_and_gate((1, 0, 1, 1, 0))
0
"""
return int(all(inputs))


if __name__ == "__main__":
Expand Down