Mega Code Archive

 
Categories / Python / List
 

How to Update Lists

aList = [123, 'abc', 4.56, ['inner', 'list'], (7-9j)] print aList[2] aList[2] = 'float replacer' print aList aList.append("hi, i'm new here") print aList