Functions


Welcome to Day Ten!

Welcome to Day Ten 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: functions.

Learning Objectives

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

  • Explain how functions help you to write DRY code
  • Write Python code to define and use functions (i.e. modular code)
  • Apply functions to numpy arrays
  • Create new numpy arrays from the output of functions

Class Schedule

Topic
Review Day 9 / Questions
Lesson 1: Intro to Functions
Lesson 2: Write Custom Functions
Lesson 3: Apply Functions to Numpy Arrays

Lessons Day 10

Today’s lessons provide the information and files that you need to begin homework 4. In the lessons, you will write Python in Jupyter Notebook to write DRY and modular code using functions.

Get Day10 Files From Github.com

Fork and git clone today’s files from https://github.com/earthlab-education/ea-bootcamp-day-10 to the earth-analytics-bootcamp directory under your home directory.

If needed, refer to the lesson on Get Files from Github.com.

Begin Homework 4

View Homework 4

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

The final homework (Homework 4) is due Tuesday, August 21st at 8:00 AM (U.S. Mountain Daylight Time). See this link to convert the due date/time to your local time.

Updated: