CIT 590/591 Previous Announcements
Fall 2012, David Matuszek, Anthony West

Date Announcements
November 5, 2012 Corrected some misstatements about how to import files in the Array Operations assignment.
November 2, 2012 New postings: party_time_test.py and party-data-small.txt. These are the exact files we used for testing your program, except for one thing: The failure messages for solve_1 and solve_2 were indistinguishable, so I added test_solve_1 and test_solve_2 to the respective failure messages.
October 18, 2012

Here's the Python midterm from 2009, and the same midterm with answers. It might be a good idea to try the exam yourself before looking at the answers.

Please note that I don't cover, or emphasize, exactly the same things every year, so there may be unfamiliar things on this exam. If I didn't talk about it this year and it's not in the readings, I probably won't test you on it.

October 18, 2012

For those interested in the upcoming U.S. elections:

Over the years I have found UPenn's own Annenberg center to be an excellent source of unbiased information. It checks the validity of the various claims made by politicians, and spares nobody. Two of their sites are factcheck.org and flackcheck.org.

For a less balanced point of view, see the Details of the Romney/Ryan Tax Plan.

October 7, 2012

Example book collection is at Example collection.txt.

To input this file:

f = open('collection.txt') # If in same directory as library.py
book_list = eval(f.read())
f.close()
Source: 50 Classic Books: Volume One
October 5, 2012 Please put the following at the end of your Library program:
 if __name__ == '__main__':
    main()
This says:
  1. If this file is loaded directly into the REPL, the function main() will be called automatically.
  2. If this file is used by another file (such as the unit test file), the function main() will not be called automatically.
September 26, 2012 The corrections to the corrections to the License Plates assignment have now been posted.
September 26, 2012

The License Plates program did not unambiguously specify what the arguments to each function should look like. I have added clarifications in green to the assignment.

Make sure your functions expect the right kind of arguments. We will be testing your program with our unit tests, and if your functions do not work with the arguments we provide, they will fail our unit tests and you will lose points.

It is entirely possible that your program won't need any changes. If it does, the changes should be simple to make. If you do need to change your program, it's a good idea to begin by changing your unit tests.

September 26, 2012 Please put the following at the end of your License Plates program:
 if __name__ == '__main__':
    main()
This says:
  1. If this file is loaded directly into the REPL, the function main() will be called automatically.
  2. If this file is used by another file (such as the unit test file), the function main() will not be called automatically.