Save
Computing (Intermediate Python)
Lists
Save
Share
Learn
Content
Leaderboard
Learn
Created by
Darsh Pimpalgaonkar
Visit profile
Cards (7)
List
A sequence of a
bunch
of other
data
types in Python
View source
Index
The position of an
element
within a list, starting from
0
View source
Lists in Python can contain
elements
of different data
types
View source
Modifying an element in a list
Assign a new
value
to the
element
at a specific index
View source
When you assign one list
variable
to another, they both refer to the same list in
memory
View source
The
append()
method adds a new
element
to the end of a list
View source
Use
square
brackets indicate the
beginning
and
end
of a list