Exercises: Exercises 2: Functions and Booleans

These exercises are spread across 3 notebooks (which are packaged together in the .zip file linked below):

  1. A_ex_lec_fruitful_functions.ipynb for the Functions lectures.
  2. B_ex_lec_functions_print_input focuses on functions that use print and/or input.
  3. C_ex_lec_booleans introduces boolean logic, relational and logical operatorsoperators, and predicates, and goes with the Intro to Booleans Lecture.

You should finish most of these exercises before starting project 2, because they will help you succeed on that project.

Code

Click on this ex02_functions_and_booleans.zip link to download the .zip file for this week to your computer. Unzip the downloaded ex02_functions_and_booleans.zip file (by double-clicking on it) to reveal a folder with the notebook file(s) for these exercises.

Solutions

Once you have completed all exercises and the deadline has passed, you can find links to the solutions for each individual notebook via the Potluck dashboard.