COMPSCI 1MD3 Lecture Notes - Lecture 4: Operand, Flowchart, Ipython
36 views3 pages
9 Apr 2018
School
Department
Course
Professor
Document Summary
Evaluates the left operand if the condition b, a boolean expression is true, otherwise the right operand e if b is false. A and b true if a and b are true,false otherwise. True if either or both are true,false otherwise. Exclusive or, true if either b or c are true, but not both, false otherwise not a. If a is true, returns false, if a is false, returns true. Not(b and c) =(not b) or (not c) Z = not(not(x and not (y)) or y) not(not(true and not (false)) or false) not(not(true and true) or false) not(not(true) or false) not(false or false) Used to count the number of permutations n! I, f = 0, 1 while i