Schedule
This schedule will be filled out as the course progresses.
Day | Date | Topics, Slides, Code | Readings | Assignments, Labs, Exam info |
---|---|---|---|---|
1 | 8/26 |
Introduction
Slides
|
||
2 | 8/28 |
Hardware and software, operators, types, input from the keyboard,
formatted printing.
Slides input.py.txt columns.py.txt Python Shell 2 |
Chapter 1; Appendix B (on IDLE). | |
L | Lab Handout | Lab 1 (attendance needed for credit) | ||
9/2 | No Class | |||
3 | 9/4 |
Expressions versus
statements, functions, scope
first_functions.py.txt nestedFunctionCalls.py.txt scope.py.txt variableArguments.py.txt taxes.py.txt trace1.py.txt song.py.txt |
Chapters 2-3 | |
L | Lab Handout | Lab 2 (attendance needed for credit) | ||
4 | 9/9 |
Practice
time_converter.py.txt future_value.py.txt |
||
5 | 9/11 |
More on functions and scope; if-then statements
globalVars.py.txt noGlobalVars.py.txt keywordArguments.py.txt new_bio_calc.py.txt stringComparisons.py.txt ifThenElse.py.txt loanQualifier.py.txt |
Chapter 4 | |
L |
Lab Handout
lab3_1.py.txt lab3_2.py.txt lab3_3.py.txt |
Lab 3 (attendance needed for credit) | ||
6 | 9/16 |
More on if-statements; conditions; logical operations; strings.
Python Shell loanQualifier2.py.txt stringFuns.py.txt |
Chapter 9, pp. 341-346 |
Assignment 1 Due.
The assignment is available here. Here are submission instructions! |
7 | 9/18 |
Loops
askAndCountVowels.py.txt infiniteLoop.py.txt noValidateInput.py.txt validateInput.py.txt |
Chapter 5, pp. 157-190 | |
L | Lab Handout | Lab 4 (attendance needed for credit) | ||
8 | 9/23 |
Go over what to expect for Exam 1 (see files below). Nested Loops printTimes.py.txt rectangularPattern.py.txt trianglePattern.py.txt mystery.py.txt |
Chapter 5, p. 190-196 | Note!! Exam 1 is Mon and Assignment 2 (available below) is due Wed, so plan ahead! |
9 | 9/25 |
Assignment 1 extensions. Nested loops.
A solution to the Assignment 1 program. An extended solution to the Assignment 1 program. |
||
L |
Lab Handout
puzzle.py.txt |
Lab 5 (attendance needed for credit) | ||
10 | 9/30 |
Exam 1
Information about Exam 1 Answers to sample questions. |
||
11 | 10/2 |
Standard Libraries and Modules; start Files and Exceptions
circle.py.txt rectangle.py.txt geometry.py.txt mathfuns.py.txt |
Chapter 6 |
Assignment 2 Due
The assignment is available here. |
L | Lab Handout | Lab 6 (attendance needed for credit) | ||
12 | 10/7 |
Files and Exceptions
file_write.py.txt file_read.py.txt line_read.py.txt strip_newline.py.txt write_numbers.py.txt write_numbers1.py.txt sales.txt read_sales.py.txt read_sales2.py.txt exception.py.txt shellDay12.txt |
Chapter 7 | |
13 | 10/9 |
Finish Files and Exceptions; Problem solving.
verify.py.txt verifyWithException.py.txt verifyWithExceptions1.py.txt Python Shell showing string.split(), list.append(), and indexing nested list elements. Notes typed during class |
Chapter 8 | |
L |
Lab Handout
lab7.dat.txt |
Lab 7 (attendance needed for credit) | ||
14 | TUES 10/15 |
Lists, Tuples, Strings.
Problem Solving.
Notes and Shell |
Chapter 9 | |
15 | 10/16 |
Lists, Tuples, Strings.
Problem Solving.
listExercises.py.txt |
||
L | Lab 8 Catching Up. Everyone is welcome. Attendance is required for credit for those with Exam 1 grades < 86. The TAs do not know your exam grades and, since everyone is welcome, people won't know each other's exam grades either. | |||
16 | 10/21 |
Problem solving with lists, strings, tuples.
Notes during class remove_i_broken.py.txt remove_i_correct.py.txt remove_0_from_list.py.txt index_list.py.txt |
Chapter 10 |
Assignment 3 Due
The assignment is available here. |
17 | 10/23 |
Dictionaries
inverted_dict.py.txt testScoresDict.py.txt wannabe.py.txt midsummernight.txt fairytale.txt alice.txt prideandprejudice.txt wannabe_starter.py.txt wannabe_starter2.py.txt simple.txt simple_1.txt simple_1_txt_and_dict.txt simple_txt_and_dict.txt testScoresDict.py.txt |
||
L |
Lab Handout lab9.py.txt birds.txt |
Lab 9 | ||
18 | 10/28 |
Continuation of the "wannabe" program to generate epics.
Scientific Paper Generator Processing different forms of input data. hopedale.txt singleLinesIncorrect.py.txt singleLinesCorrect.py.txt singleLinesCorrectMissingData.py.txt hebron.txt lynx.txt multiLines.py.txt |
Back to Chapter 7. | |
19 | 10/30 |
Processing input formats.
multimol.pdb multimol.py.txt multimol_no_ends.pdb lookahead.py.txt |
||
L | Review for exam 2. | Lab 10 (attendance needed for credit) | ||
20 | 11/4 | Exam 2 |
Exam 2
Information about Exam 2 |
|
21 | 11/6 |
Continue processing input formats; formatted output practice;
debugging practice.
string_to_list.py.txt http://www.madtakes.com/ madlib.py.txt |
||
L |
Lab Handout
debug.py.txt |
Lab 11 (attendance needed for credit) | ||
22 | 11/11 |
madlibBetter.py.txt madlibBest.py.txt madlibBest1.py.txt |
Chapter 11 |
Assignment 4 Due
The assignment is available here. |
23 | 11/13 | No Class | No Class | No Class |
L | lab12.py.txt | Lab 12 (attendance needed for credit) | ||
24 | 11/18 |
Classes
bankaccount2.py.txt account_test2.py.txt |
||
25 | 11/20 |
Classes. Pickling.
contacts.py.txt contact_manager.py.txt contacts.dat.txt pickle_objects.py.txt unpickle_objects.py.txt joesautomotiveshop.txt servicequote.py.txt |
||
L |
Lab Handout |
Lab 13
(attendance needed
for credit)
Lab 13 will actually count as both a Lab and Assignment 5. Attendance is needed to get credit for it as a lab. The due date for the Lab/Assignment is by the beginning of Lecture on 12/4. You are allowed to do this assignment with a partner (namely, your Lab partner). |
||
26 | 11/25 |
Practice - important! to prepare you for the final exam.
shellday26.py.txt |
||
11/27 | No Class | |||
27 | 12/2 |
Practice: a dictionary of dictionaries
dict_of_dicts.py.txt db.py.txt particles.py.txt subatomi.py.txt Deconstructing wannabe.py (understanding this will deepen your understanding of complex data structures) Problem solving and practice. |
||
28 | 12/4 |
Information
about the Final Exam
Algorithms and efficiency stringmatchers.py.txt timing.py.txt Go over the madlib programs. Note that CS401, the next programming class you would take, does not assume you already know Java. But, it would be a good idea to get somewhat familiar with it before you take the class. For those interested, here is an eBook on Java for Python programmers. |
||
12/10 | Tues, Dec 10, 4pm - 5:50pm | Final Exam |