You can use a for loop to easily go through every item in a list:
python
items = ['a', 'b', 'c']for item in items: print(item)
Output
a
b
c
Your output
Common Misconceptions
List indices start at 1.
Python lists are zero-indexed, meaning the first element is at index 0.
You cannot change a list once it is created.
Lists are mutable. You can change their elements, add new ones, or remove them.
append() can add multiple items at once.
append() takes exactly one argument and adds it as a single element to the end. To add multiple elements from an iterable, use extend().
Edge Cases
Empty lists [] are completely valid and have a length of 0.
Appending a list to a list (e.g., a.append([1, 2])) adds the list as a single nested element, rather than flattening it.
Under the Hood
Watch how list modification and appending works in memory step-by-step: