
Warning
This page shows last year’s version. We might still make small changes, but you’re welcome to take a look. We’ll remove this notice once the page is final.
Week 3: Closure#
Syllabus#
Conditional execution with if statements, the keyword
iffollowed by a Boolean expressionControlling scope with indented block
Alternative execution with if-else statements, the keyword
elseChained conditionals with if-elif-else statements, the keyword
elifNested conditionals
The concept of debugging
Debugging with print statement: using
print()to trace and understand code executionIdentifying errors in code that runs but does not produce the expected output
Problem-solving by constructing the correct conditions
Checkpoint#
Checkpoint 3.1: Flowering Period #
A database of flowering plant…
Checkpoint 3.2: Something else #
Something else…