Mega Code Archive
Categories
/
Python
/
List
Assign list to a list item
L = ['Already', 'got', 'one'] L[1:] = [] print L L[0] = [] print L