Programming with Python

  1. Home
  2. Docs
  3. Programming with Python
  4. Lists in python
  5. Accessing list in python

Accessing list in python

A list is a standard datatype of python that can store a sequence of values belonging to any type. The lists are depicted through square brackets.

Lists are mutable sequence having a progression of elements. There must be a way to access its individual elements and certainly there is.

We can easily access elements of the list by its index.


print(list[index number])


l=[1, 2, 3, 4, 5, 6, 7, 8, 9]

This is how we access elements of the list in python.

Was this article helpful to you? Yes No

How can we help?