/* */

Tuesday 22 March 2011

Pop

x= [1,2,3,]
x.pop()
3

Deletes the last entry of the list

x
[1,2]
x.pop(0) - specifies which item to delete
1 - returns the value of the item it just deleted
x
[2]

No comments:

Post a Comment