Python Data Structures Assignment 8.5