CS110: Fall 2021

Intro to Computer Programming with Python

CS110: Fall 2021

Lessons > 5. Introduction to Functions

The next two lessons will primarily be dedicated to functions. In this lesson, we will introduce functions, including some basic terminology and why they are useful. We’ll also take a look at some examples of how to use built-in functions. In the next lesson (Lesson 6), we will practice building our own functions and modules.

Next week’s tutorial (Tutorial 2) and homework (Homework 2) will be based on content reviewed in this lesson and the next one. You are strongly encouraged to review the content in these lessons before trying the lab/homework.

Today's Activities

For today, please do the following:

1. Download the Exercise Files

Exercise Files

2. Review the Slides

  1. Intro to Functions
  2. Live Lecture Activities

3. Watch the Lecture Video(s)

Link Title Type Duration
Video 1 Expressions & Intro to Functions pre-recorded 15:50
Video 2 More Function Rules pre-recorded 15:32
Video 3 Built-In Functions Demo pre-recorded 09:10
Video 4 Practice working with built-in functions lecture 48:19

4. Review / Study the Supplemental Materials

Note: these readings / videos are suggested for additional context / examples, but not required.

  1. Severance Ch4: Functions.
    readingvideo
  2. Heinold Ch4: Functions.