Our first gate is the NAND gate. This gate receives two inputs and returns current as long as at least one of the inputs is off.
Here’s the truth table:
We’ve written most of a NAND gate in the script.py file. Finish the remaining case so all our test cases pass!
Run the file to run the test cases!