This Python (3.x) program also prints out a different message depending on the result of two tests. This time, though, if the score in either one of the tests is greater than or equal to 5, the ...
Here, the output Q is 1 (TRUE) only if inputs C and D are 1 (TRUE). D is only 1 (TRUE) if inputs A and B are 1 (TRUE).