[Python] Logic Gate 함수 구현 연습
Logic Gate : AND, OR, NAND, XOR, HALF_ADDER, FULL_ADDER 등등 구현 연습 def and_gate(x1, x2, bias): if (x2 + x1 - bias) > 1: return True else: return False def or_gate(x1, x2, bias): if (x2 + x1 - bias) > 0: return True else: return False def nand_gate(x1, x2, bias): return not and_gate(x1, x2, bias) def xor_gate(x1, x2, bias): _or = or_gate(x1, x2, bias) _nand = nand_gate(x1, x2, bias) return and_gate..