1234
bool nand_gate(bool a, bool b) { return !(a && b); }
bool nand_gate(bool a, bool b) { return not(a and b); }