Skip to main content

3 docs tagged with "Lists"

View all tags

Common Collection Methods and Best Practices

Over the last several articles, we've explored Python's powerful built-in collection types: lists, tuples, dictionaries, and sets, as well as the specialized containers in the collections module. This article serves as a capstone, summarizing the best practices and helping you decide which collection to use in different scenarios.

Lists (Part 1): Introduction to lists, declaring and initializing lists

Following our exploration of combining loops and conditionals, this article kicks off a new series on Working with Collections, starting with an introduction to Python lists. This concept is essential for storing and manipulating groups of data and is a foundational element in modern Python development.

Lists (Part 2): List methods, slicing, and list comprehensions

Following our introduction to declaring and initializing lists, this article dives deeper into manipulating them. We'll explore the powerful tools Python provides: list methods, slicing, and list comprehensions. Mastering these is key to effectively working with data in Python.