Python Data Structures Assignment 7.2