Conditional statements#
Attention
Finnish university students are encouraged to use the CSC Noppe platform.
Others can follow the lesson and fill in their student notebooks using Binder. Binder can be launched using the interactive code tools (rocket icon) on the lesson page linked below.
In this lesson we will learn how to make choices in our code using conditional statements (if
, elif
, else
) and Boolean values (True
, False
).
Lesson materials#
Materials for this lesson are from Chapter 2 of the forthcoming textbook Introduction to Python for Geographic Data Analysis. In this lesson we cover the materials from Chapter 2.5 (Conditional statements).