Python List
Python List
Python List
What is List?
A Python list is a general purpose 1dimensional
container for variables.
Example Program
my_list[0] my_list[3]
List Slicing
We can slice list with the used of colon [:]
my_list[:1]
my_list[1:]
List Functions
len() – use to count list items
◦ len(my_list)