Pop item by index : Pop « List « Python Tutorial






list1 = ["One", "Two", "Three"]
list2 = ["Five", "Six"]


print list1.pop(2)
print list1








7.21.Pop
7.21.1.The pop method removes an element (by default the last one) from the list and returns it
7.21.2.Pop item by index