So I've made a Python module that adds all seven logic gates (NOT, OR, AND, NAND, NOR, XOR, XNOR.)
Please note that it does not look like
a AND b
it instead looks like
And(a, b)
In a program I'm trying to make, I need a logic gate with three inputs: A, B and C. the gate should return whatever A is if C is false. However, if C is true, it should return whatever B is. It does not matter if A and B are the same. I don't want to use actual if's.
