Lecture 1: Course Overview & Big Ideas
PDF files of the lecture slides handouts.
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.
Click on this lecture_01.zip link to download the
.zip file to your computer. Unzip the downloaded lecture_01.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:
lecture01-graphics.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.
These will be posted after all the lecture sections have been taught.
The first lecture doesn't have any solutions.