Our next gate is the AND gate. This gate receives two inputs and only returns current if the inputs are both on.
As in previous exercises, you’ll only be able to use gates you’ve previously built:
Here’s the truth table:
AND_gate() which has two parameters
AND_gate() should return
1 if both
1. It should return