/* */

Tuesday, 22 March 2011

Remove

removes 1st occurance of a value in a list;

x = ['to', 'be', 'or', 'not', 'to', 'be']
x.remove('be')
x
['to', 'or', 'not','to', 'be' ]

No comments:

Post a Comment