Lists
• List – ordered collection of arbitrary objects
list1 = [0,1,2,3]
list2 = ['zero','one','two','three']
list3 = [0,'zero',1,'one',2,'two',3,'three']
• Ordered
list2.sort() list2.sort(reverse=True)
['one','three',...] ['zero','two',...]
• Mutable – you can change it
list1.append(4) list1.reverse() list2.insert(0,’one-half’)
[0,1,2,3,4] [4,3,2,1,0] [‘one-half’,’zero’…]
list2.extend([‘four’,’five’])