Skip to Content
Creating and Modifying a List in Python
Empty Lists

A list doesn’t have to contain anything! You can create an empty list like this:

empty_list = []

Why would we create an empty list?

Usually, it’s because we’re planning on filling it later based on some other input. We’ll talk about two ways of filling up a list in the next exercise.



Create an empty list and call it my_empty_list.

Folder Icon

Sign up to start coding

Already have an account?