CS 240: Data Structures and Algorithms
James Madison University, Spring 2013

HW #5

For this assignment you will use Blackboard to submit two .py files: one containing an updated version of lvector.py from Wednesday's in-class activity, and one containing the unit tests mentioned in Exercise #3 below. Your code should include an acknowledgment statement and should conform to the CS240 Coding Standards.

  1. Complete Exercise #2 from in-class activity #5 (5pts).
  2. Complete Exercise #3 from in-class activity #5 (5pts).
  3. Develop appropriate unit tests for __getitem__, __setitem__ and insert. (5pts)