#python #sicp
Conditional statements. A conditional statement in Python consists of a
series of headers and suites: a required if clause, an optional sequence of elif clauses, and finally an optional else clause:
If you want to change selection, open document below and click on "Move attachment"
1.5 Control Global absolute_value result 2 absolute_value x -2 Returnvalue 2 func absolute_value(x)
This implementation of absolute_value raises several important issues:
<span>Conditional statements . A conditional statement in Python consists of a
series of headers and suites: a required if clause, an optional sequence of
elif clauses, and finally an optional else clause:
if :
elif :
else:
When executing a conditional statement, each clause is considered in order. The
computational process of executing a conditional clause follows.
Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details