Python ProgrammingPython Programming

Python Lists

In this tutorial you will learn, to generate and manage lists in Python programming.

A list in Python is much the same thing as an array in Java or C or any other language; it's an ordered collection of objects. List is one of the most commonly used built-in data structures, for storing a collection of values. List can contain heterogeneous values such as integers, floats, strings, tuples, lists, and dictionaries but they are commonly used to store collections of homogeneous objects. Python lists are mutable sequences.
Lists should always be used when we want to store items in some kind of order. The keys for a list are integers.