Affiliate disclosure
Book titles on this page link to Amazon. As an Amazon Associate, DataField.Dev earns from qualifying purchases — at no additional cost to you.
Further Reading: Lists and Tuples
Python Documentation
-
Python Tutorial: Lists (Tier 1) https://docs.python.org/3/tutorial/datastructures.html#more-on-lists The official tutorial's coverage of list methods and operations. Concise, authoritative, and always up to date. Good as a quick reference after you've learned the concepts here.
-
Python Tutorial: Tuples and Sequences (Tier 1) https://docs.python.org/3/tutorial/datastructures.html#tuples-and-sequences The official treatment of tuples, including packing and unpacking. Short but precise.
-
Python Library Reference:
copymodule (Tier 1) https://docs.python.org/3/library/copy.html Full documentation on shallow vs. deep copying. If you ever need to copy nested data structures, start here.
Understanding Python's Data Model
-
Ned Batchelder, "Facts and Myths about Python Names and Values" (PyCon 2015 talk) (Tier 1) A widely recommended conference talk that explains Python's name/reference model — exactly the concept behind aliasing. Clear visuals, memorable examples. Available on YouTube.
-
Luciano Ramalho, Fluent Python, 2nd Edition (2022). Chapter 6: "Object References, Mutability, and Recycling." (Tier 1) A deep dive into how Python handles mutable and immutable objects, identity vs. equality, and the subtleties of copying. More advanced than what we cover here, but excellent for building deeper understanding.
List Comprehensions
-
Trey Hunner, "Comprehensible Comprehensions" (PyCon talk) (Tier 1) A step-by-step guide to reading and writing list comprehensions, including when NOT to use them. Trey Hunner is known for making Python concepts accessible. Available on YouTube.
-
Python Documentation: List Comprehensions (Tier 1) https://docs.python.org/3/tutorial/datastructures.html#list-comprehensions The official tutorial section with clear examples of simple and nested comprehensions.
Data Structures Perspective
-
Downey, Allen B. Think Python, 3rd Edition (2024). Chapters 10-12. (Tier 1) Another open-source textbook's take on lists, tuples, and dictionaries. Good for a second perspective on the same concepts we cover here. Free online.
-
Sweigart, Al. Automate the Boring Stuff with Python, 2nd Edition. Chapter 4: "Lists." (Tier 1) Practical, project-oriented coverage of lists with a focus on automation tasks. Complements this chapter's emphasis on data processing. Free online.
For the Curious
-
The Python
collectionsModule (Tier 1) https://docs.python.org/3/library/collections.html Beyond basic lists and tuples, Python'scollectionsmodule offersnamedtuple,deque,Counter,defaultdict, and more. We previewednamedtuplein this chapter; we'll return todefaultdictin Chapter 9 anddequein Chapter 20. -
Raymond Hettinger, "Transforming Code into Beautiful, Idiomatic Python" (PyCon 2013 talk) (Tier 1) A classic talk on writing Pythonic code, with extensive coverage of
enumerate(),zip(),sorted(), and list comprehensions. Every pattern from section 8.5 is covered here with real-world motivation. Available on YouTube.
Practice Problems
-
LeetCode Easy Problems tagged "Array" (Tier 2) Once you're comfortable with list operations, LeetCode's "Easy" array problems are excellent practice. Start with: Two Sum, Remove Duplicates from Sorted Array, and Merge Sorted Array.
-
CodingBat Python List Problems (Tier 2) https://codingbat.com/python Short, focused list exercises with instant feedback. Good for building fluency with basic list operations before tackling the more complex exercises in this chapter.