Python Data Structures Chapter 9 Assignment