List
, Introduction
Contains multiple values that are logically related
List is a type of mutable sequence in Python
Each element of a list is assigned a number – index /
position
Can do indexing, slicing, adding, multiplying, and
checking for membership
Built-in functions are available for finding length of
a sequence, for finding its largest and smallest
elements, etc
, What is a List?
Most versatile data type in Python
Comma-separated items can be collected in
square brackets
Good thing is..
THE ITEMS IN THE LIST NEED NOT BE OF SAME
TYPE
, Introduction
Contains multiple values that are logically related
List is a type of mutable sequence in Python
Each element of a list is assigned a number – index /
position
Can do indexing, slicing, adding, multiplying, and
checking for membership
Built-in functions are available for finding length of
a sequence, for finding its largest and smallest
elements, etc
, What is a List?
Most versatile data type in Python
Comma-separated items can be collected in
square brackets
Good thing is..
THE ITEMS IN THE LIST NEED NOT BE OF SAME
TYPE