Week 3: Conditionals

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 if followed by a Boolean expression

  • Controlling scope with indented block

  • Alternative execution with if-else statements, the keyword else

  • Chained conditionals with if-elif-else statements, the keyword elif

  • Nested conditionals

  • The concept of debugging

  • Debugging with print statement: using print() to trace and understand code execution

  • Identifying 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…