M2: Functions

This module provides an introduction to defining and using functions.

Textbook Chapters

The main chapter corresponding to this module is:

There are also three additional chapters that we encourage you to read after the Introduction to Functions chapter:

A PDF version of the textbook is also available here.

You will be asked to log in with your CNetID before you can see the textbook.

Please note that the lectures do not assume you have read the book chapters ahead of time. Unless you prefer to get a feel for the material ahead of a lecture, we suggest you instead plan to read the book chapters after the lectures, as a way to ensure you understood the material covered in the lectures, as well as to dig deeper into topics that we only cover at a high level in the lectures.

Lecture Examples

Files from the PageRank example:

Team Tutorial

Team Tutorial #2: Functions

Remember that the Team Tutorial is not graded, but we nonetheless encourage you to complete it before Programming Assignment #2 is released.

Short Exercises

Short Exercises #2, due Wednesday, Oct 13 at 4:30pm CDT

We encourage you to follow the “Fetching the instructor files” instructions at the top of the Short Exercises #2 page sooner rather than later, to ensure you are able to pull the instructors’ files into your Short Exercises repository. Unlike SE #1, you will not be able to start working on SE #2 until you have those files.

Programming Assignment

Programming Assignment #2, due Friday, Oct 22 at 4:30pm CDT