Summary


In this chapter, you learned all about lists and dictionaries, two new types. You learned that lists are mutable sequences. You saw how to add, delete, sort, and even reverse those elements. But even with all that lists offer, you learned that there are some cases where the less flexible tuple is actually the better (or required) choice. You also learned about shared references that can occur with mutable types and saw how to avoid them when necessary. You saw how to create and use nested sequences to work with even more interesting information, like a high score list. You learned how to create and modify dictionaries that let you work with pairs of data, too.




Python Programming for the Absolute Beginner
Python Programming for the Absolute Beginner, 3rd Edition
ISBN: 1435455002
EAN: 2147483647
Year: 2003
Pages: 194

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net