
Figure 1. |
Figure 2. |
Figure 3. |
Figure 4. |
Figure 5. |
Figure 6. |
Figure 7. |
Figure 8. |
Figure 9. |
Figure 10. |
Figure 11. |
Figure 12. |
Figure 13. |
Figure 14. |
Figure 15. |
Figure 16. |
Figure 17. |
Figure 18. |
There are four example programs for chapter 6: download chapter6.zip.
The best general book on data types and structures is Data Structures and Algorithms, by Aho, Hopcroft and Ullman, published by Addison Wesley, ISBN: 0-201-00023-7. While it provides pseudocode algorithms for creating and accessing various types and structures, you will find that Python already does most of these things for you; it’s always good to understand more of what’s going on underneath the hood, though, and there remains a wealth of useful information about the data types we have covered in this hour and the material we will cover in the central third of this book.
If you want to get a head start on topics covered later in this book, then look at the code for lbm.py (Listing 6.3) and see if you can figure out what all the lines are doing, including the ones we haven’t talked about (go through your Python HTML documentation). Can you rewrite lbm.py to include less code?
For a little relaxation with a time machine, consider reading Larry Niven’s, Rainbow Mars. You’ll appreciate Guido’s Time Machine a little more, I think.
|
|
|