Conditional Statements

Welcome to Day Eight!

Welcome to Day Eight of the Earth Analytics Bootcamp! Today, you will write Python code in Jupyter Notebook to implement another strategy for DRY (i.e. Do Not Repeat Yourself) code: conditional statements.

Learning Objectives

After completing the lessons for Day 8, you will be able to:

  • Explain how conditional statements help you to write DRY code
  • Write Python code for conditional statements to run tasks only when certain conditions are met

Class Schedule

Review Day 7 / Questions
Lesson 1: Intro to Conditional Statements
Lesson 2: Control Flow Using Conditional Statements

Lessons Day 8

Today’s lessons provide the information and files that you need to continue homework 3. In the lessons, you will write Python in Jupyter Notebook to control the flow of your code using conditional statements.

Get Day 8 Files From

Fork and git clone today’s files from to the earth-analytics-bootcamp directory under your home directory.

If needed, refer to the lesson on Get Files from

Continue Homework 3

View Homework 3

Important: Complete today’s lessons and hands-on activities (listed above) BEFORE continuing Homework 3.

The third homework (Homework 3) is due Friday, August 17th at 8:00 AM (U.S. Mountain Daylight Time). See this link to convert the due date/time to your local time.