/* */

Tuesday, 22 March 2011

Deletion

names = ['Alice', 'Beth', 'Julie', 'Cecil', 'Gary']
del names [2]
names
['Alice', 'Beth', 'Cecil', 'Gary']

Use the del function to delete item from list.

No comments:

Post a Comment