AI engineering glossary · Python core
What is list?
List: An ordered, mutable sequence written in square brackets that can hold items of any type, including duplicates. Elements are reached by index, and methods such as append, insert, remove, pop, sort and extend change it in place.
List: an example
marks = [72, 85, 90]; marks.append(64) makes it [72, 85, 90, 64]; marks[1] is 85.
Related terms
More Python core terms
Where you learn it
List is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.