CS-1004 Lecture Notes
A-Term 2016
Below are the lecture notes, Python scripts, and additional materials for CS-1004, Introduction to Programming for Non-Majors for this term. Lecture notes will normally be posted shortly before or shortly after each class. Students are responsible for knowing and understanding all of the lectures and classroom activities, even those that they might miss — and even those the Professor might skip!
Chapter numbers refer to Python Programming: An Introduction to Computer Science, 2nd edition, by John Zelle.
Note 1: The PowerPoint versions of the lecture notes include dynamic displays. It is best to view them as “slide shows” from PowerPoint of by using the free PowerPoint viewer. The PDF versions are provided for your convenience, but they do not capture the dynamic flow of the lectures. If you have an older version of PowerPoint, a free conversion plug-in is available to read presentations in pptx format.
Note 2: The Python scripts in the Other Links column are (mostly) copies of the IDLE windows saved during class. Since they contain prompt characters and interleave lines of Python code with results from executing that code, they are not directly executable.
Date |
Topic |
Text |
Lecture Notes |
Other |
|
Aug 25 |
Introduction |
1 |
|
||
Aug 26 |
First Python program |
1 |
|
||
Aug 29-30 |
Elements of a Python Program |
1, 2 |
|||
Sep 1-2 |
More elements of a Python Program |
2 |
|
||
Sep 6 |
Lists, for-loops, Pyplot |
2.6 |
|
||
|
For more
information about Pyplot, see |
Not
in |
|
|
|
Sep 6-8 |
Miscellaneous topics |
Various |
|
||
Sep 8 |
Introduction to Objects |
4 |
|||
Simple graphics package (download from |
|||||
More about Homework #4 |
|||||