Python Data Structures Assignment 8.4