Create LogicGate.py

Update LogicGate.py