Python List Remove Item Presentation


This is the presentation associated with the python list remove item video.

Download Presentation

PythonList Remove Item Video Question

This is the Question that was asked in the python list remove item video

Question : What is the output of the following code:
In [ ]:
namelist = ["Bill", "Steve", "Tim"]
namelist.pop(-2)
print(namelist)
In [1]:
namelist = ["Bill", "Steve", "Tim"]
namelist.pop(-2)
print(namelist)
['Bill', 'Tim']