Python Data Structures Assignment 9.4