Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Exploring Python's list Data Type With Examples (Summary)

Now you have a deep, solid understanding of the core features and functionalities of Python lists. Lists are everywhere. They’re an important part of the language itself and are present in the standard library, third-party packages, and in just about every piece of Python code that you’ll find out there. So, learning about them is a fundamental skill that you must have under your belt.

In this video course, you’ve learned how to:

  • Create new lists in Python using different approaches
  • Access one or more items in an existing list
  • Copy, update, grow, shrink, and concatenate existing Python lists
  • Sort, reverse, and traverse existing lists using built-in functions and methods
  • Use some other features of lists

Resources linked in this lesson:

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

Avatar image for Hans Geukens

Hans Geukens on June 19, 2025

Thanks for developing this training. Should we not add these ‘bad practice’ in the don’ts:

def add_item(item, my_list=[]):
    my_list.append(item)
    return my_list

print(add_item('a'))  # ['a']
print(add_item('b'))  # ['a', 'b']  <-- Why is 'a' still there?!

I believe they mark the risk as ‘Shared Mutable State’ which may cause hard to debug issues.

Become a Member to join the conversation.