CMPT 140 Fall 2009 Extra HW/Lab Assignments

Most homework and lab assignments are taken from the Python or M2 textbooks. This page lists amendments and assignments not taken from the textbooks.

Lab 8: Lists and File I/O (due Wed/Thu 4/5 Nov)

For this lab, you will be building complex data structures like Python lists and also using file I/O to read/save results to file. Choose one of the following options:

Lab 5: Exceptions (due Wed/Thu 25/26 Nov)

Write a library that provides robust user input:
For each basic Python data type (int, float, bool, str), provide a function that reads input from the keyboard and returns the value in the proper type. E.g., input_str(), input_bool(), etc. You may find your library useful for future projects!