#python #sicp
Logical expressions have corresponding evaluation procedures. These procedures
exploit the fact that the truth value of a logical expression can sometimes be
determined without evaluating all of its subexpressions, a feature called
short-circuiting.
If you want to change selection, open document below and click on "Move attachment"
1.5 Control( == ), a convention shared across many programming
languages.
Boolean operators . Three basic logical operators are also built into Python:
>>> True and False
False
>>> True or False
True
>>> not False
True
<span>Logical expressions have corresponding evaluation procedures. These procedures
exploit the fact that the truth value of a logical expression can sometimes be
determined without evaluating all of its subexpressions, a feature called
short-circuiting.
To evaluate the expression and :
Evaluate the subexpression . If the result is a false value v , then the expression evaluates to v . Otherwise, the expression evaluates to t Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details