Exercises: Exercises 2: Functions and Booleans
These exercises are spread across 3 notebooks (which are packaged
together in the .zip file linked below):
A_ex_lec_fruitful_functions.ipynbfor the Functions lectures.B_ex_lec_functions_print_inputfocuses on functions that useprintand/orinput.C_ex_lec_booleansintroduces 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.