Skip to content
Merged
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
Update imply_gate.py
  • Loading branch information
dannylarge144 authored Oct 5, 2023
commit 5a3800ad0d8733aae0ebad5fc8cba36ac2f4c9d7
6 changes: 3 additions & 3 deletions boolean_algebra/imply_gate.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
An IMPLY Gate is a logic gate in boolean algebra which results to 1 if
either input 1 is 0, or if input 1 is 1, then imput 2 is 1. It is true is input 1
implies input 2.
either input 1 is 0, or if input 1 is 1, then the output is 1 only if input 2 is 1.
It is true if input 1 implies input 2.

Following is the truth table of an IMPLY Gate:
------------------------------
Expand Down Expand Up @@ -48,4 +48,4 @@ def test_imply_gate() -> None:
print(imply_gate(0, 0))
print(imply_gate(0, 1))
print(imply_gate(1, 0))
print(imply_gate(1, 1))
print(imply_gate(1, 1))