Python Data Structures Assignment 6.5