Python Lists
Python Lists
What is a List?
markslist=[54,66,89,21]
1. Allows
1. The index
you of
tothe
1. The index of the
list where
select slicing
nth item
list where slicing
end. the
within
starts.
2. range
Default value-
start to sto
2. Default index-0
len(list)-1
p.
Examples
⚫Syntax
⚪ my_new_list = [ expression for item in list ]