Python lists are similar to real-life lists. You can use them to store and organize a collection of objects, which can be of any data type. Instead of just storing one item, a list can hold multiple items while allowing manipulation and retrieval of those items. Because lists are mutable, you can think of them as being written in pencil. In other words, you can make changes.
Tuples, on the other hand, are written in ink. They’re similar to lists in that they can hold multiple items, but unlike lists, tuples are immutable, meaning you can’t modify them after you’ve created them.
In this video course, you’ll learn:
- What lists and tuples are and how they’re structured
- How lists and tuples differ from other data structures
- How to define and manipulate lists and tuples in your Python code
By the end of this course, you’ll have a solid understanding of Python lists and tuples, and you’ll be able to use them effectively in your own programming projects.
This video course is part of the Python Basics series, which accompanies Python Basics: A Practical Introduction to Python 3. You can also check out the other Python Basics courses.
Note that you’ll be using IDLE to interact with Python throughout this course.
alvesmig on Jan. 24, 2024
Hello,
Does this course belong to the learning path:
Python Basics: Introduction to Python
I am asking because I think this course should belong to this learning path, but it doesn’t appear in its description.
Best regards, Miguel