Python list() built-in function

From the Python 3 documentation

Rather than being a function, list is actually a mutable sequence type, as documented in Lists and Sequence Types — list, tuple, range.

Introduction

In Python, list is not a function but a built-in mutable sequence type. This means it’s a data structure that can hold an ordered collection of items, and you can change its contents. You can create a list using square brackets [] or the list() constructor.

Examples

l = list()
print(l)
l.append(1)
l.append(2)
print(l)
[]
[1, 2]