the fact that the truth value of a logical expression can sometimes be determined without evaluating all of its subexpressions
Tags
#python #sicp
Question
What is short-circuiting?
Answer
?
Tags
#python #sicp
Question
What is short-circuiting?
Answer
the fact that the truth value of a logical expression can sometimes be determined without evaluating all of its subexpressions
If you want to change selection, open original toplevel document below and click on "Move attachment"
Parent (intermediate) annotation
Open it 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.
Original toplevel document
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 learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.