Creating basic logic gates
What are logic gates?
Logic gates preform a boolean function, i.e., a logical operation that takes one or more inputs and produces one output. Logic gates are used often as electronic switches in circuitry, where they route electricity accordingly. When looking at a logic gate diagram, the number of inputs (0 or 1) will be determined by the number of lines going into the gate. All gates have two inputs except for the NOT gate. All gates have one output, designated by the line leading out of the gate.