Lecture: Course Overview & Big Ideas
PDF files of the lecture slides:
These slides are the primary "textbook" of the course. Relevant slides will always be posted ahead of the corresponding class meeting. Each instructor may use them differently during class. If you wish to have paper copies of these materials for notetaking during or outside class, you are free to print your own.
This chapter explains the cs1graphics library, which is used frequently in our course. It is important to read it as preparation for this week's lab and the first homework.
In order to run Python code during class, you will need to launch the Canopy 3.5 Python app:
(Do not launch the app named just
Canopy; that loads the wrong version of Python!) The first time you launch Canopy 3.5, it will take a while to initialized your environment; be patient.
While Canopy 3.5 is loading, click on this lec_course_intro.zip link to download the
.zip file to your computer. Unzip the downloaded lec_course_intro.zip file (by double-clicking on it) to reveal a folder with a few files we will use during lecture. Note that some computers may automatically unzip the file after you download it.
Here is a description of the content of the files in this folder:
lec_course_intro.ipynb: The ending
.ipynbstands for interactive python notebook. This is a special file that you can open with Canopy, which we'll use often during lectures. You will not be creating such files yourselves. Every input cell is "run" independently of the others. However, order matters, especially when some variables are declared in previous cells. You can save all changes to this file (the outputs of the instructions), and "relive" the lecture at your pace. Alternatively, you can download the file again and test yourself in the short activities that these notebooks contain.
cs1graphics.py: This is a Python module that needs to be present in order for us to create the Tinman graphics. You will not need to open or run the code of this file. We will only import its content in our program via a special Python instruction.
tinmanWithGrid.py: The script version of the Tinman graphics, which adds two function calls to draw the reference points and a grid.
cs1graphicsHelper.py: The script that contains the functions used to draw reference points and the grid.
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.