Declare an Empty List in Python (original) (raw)

Last Updated : 01 May, 2025

Declaring an empty list in Python creates a list with no elements, ready to store data dynamically. We can initialize it using [] or list() and later add elements as needed.

Using Square Brackets []

We can create an empty list in Python by just placing the sequence inside the square brackets[]. To declare an empty list just assign a variable with square brackets.

Python `

a = []
print(a)

print(type(a)) print(len(a))

`

Output

[] <class 'list'> 0

**Explanation:

Using the list() Constructor

list() constructor is used to create a list in Python. It returns an empty list if no parameters are passed.

Python `

a = list()
print(a)

print(type(a)) print(len(a))

`

Output

[] <class 'list'> 0

**Explanation:

**Related Articles:

Similar Reads