We have briefly discussed local and global variables. If you are interested in learning more about them, read this (short) deck of slides.
Click on this lec_conditionals.zip link to download the
.zip file to your computer. The unzipped folder contains the notebook for lecture activities.
Solutions (for after class)
Use these sample solutions for review only after you have completed the code exercises. You will learn much more by trying them first and comparing your approach with the solutions.