Learn practical skills, build real-world projects, and advance your career

Python Lists Refresher

The list is one of the most widely used data types in Python. A python list can easily be identified by square brsckets []. Lists are used to store the data items where each item is seperated by comma(,).
A python list can have items of different data types, can be an integer or float or bool, etc.

One of the leading reason why lists are being widely used is that lists are mutable. Being mutable means any data item of a List can be replaced by any other data item. This makes a list different from tuples, which also stores data items but are immutable.

For example:
a = ['Hello', 12, 100.0, False, "False"]

!pip install jovian --upgrade --quiet
import jovian
# Execute this to save new versions of the notebook
[jovian] Attempting to save notebook..