Chapter 3 ยท Part I: Basics

Introducing Lists

Book: Ch. 3, 'Introducing Lists', pp. 33โ€“48

Pages this chapter covers

Section titles and printed pages from the 3rd edition. Notes below use the full citation.

  • What Is a List?p. 33
    • Accessing Elements in a Listp. 34
    • Index Positions Start at 0, Not 1p. 34
    • Using Individual Values from a Listp. 35
  • Modifying, Adding, and Removing Elementsp. 36
    • Modifying Elements in a Listp. 36
    • Adding Elements to a Listp. 37
    • Removing Elements from a Listp. 38
  • Organizing a Listp. 42
    • Sorting a List Permanently with the sort() Methodp. 43
    • Sorting a List Temporarily with the sorted() Functionp. 43
    • Printing a List in Reverse Orderp. 44
    • Finding the Length of a Listp. 44
  • Avoiding Index Errors When Working with Listsp. 46
  • Summaryp. 47

Notes

Notes are not written yet

The section list above is only a map of the book, with printed page numbers, so you can read the chapter and come back. Original notes for this chapter are still to come.