15-110 Summer 2017

Lab 6


The purpose of this lab is to teach you how to write recursive functions. When you are done, you should be able to


  1. multiply.py
  2. blast_off.py
  3. sum_odds.py
  4. count_a_words.py
  5. list_a_words.py (Challenge)

Place these files in a lab6 folder. Before leaving lab, zip up the lab6 folder and hand in the zip file.

Part 1 - Recursion with Integers

1.1 Class Activity

1.2 Student Activity

Part 2 - Recursion with Lists

2.1 Class Activity

2.2 Class Activity

2.3 Student Activity