Comment on Zed Shaw is Writing A Book Teaching Beginner PythonparentComments−cracki16yuh, after revisiting the tables in the PDF, i understand the situation better.the NAND and NOR tables don't follow the same evaluation scheme.the NOR table is "(not A) or B", which is according to python's precedence rules without parentheses.the NAND table is "not (A and B)", which matches the common definition of NAND.
Comments
uh, after revisiting the tables in the PDF, i understand the situation better.
the NAND and NOR tables don't follow the same evaluation scheme.
the NOR table is "(not A) or B", which is according to python's precedence rules without parentheses.
the NAND table is "not (A and B)", which matches the common definition of NAND.