The pop method removes an element (by default the last one) from the list and returns it : Pop : List PYTHON TUTORIALS


PYTHON TUTORIALS » List » Pop »

 

The pop method removes an element (by default the last one) from the list and returns it


x = [123]
x.pop()
print x
x.pop(0)
print x



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo List
» Pop