Post

@PythonPr The answer is D.
The element 3 is removed from the list, but we are printing result not x!
So, 3 is promoted as output.
English

@PythonPr Answer: (d) 3
The pop() method, when given an index (in this case, 2), removes the item at that specific index from the list and returns the removed item itself.
The list starts as x = [1, 2, 3, 4, 5].
Python lists use 0-based indexing, so the elements are at indices 0, 1,
English

@PythonPr a) because pop meaning is removing the item in the list which indicate the specific index
English

@PythonPr Easy 1,3,4,5 pop 2 means remove 2 from the list
English

@PythonPr It prints 3, because pop(2) removes the element at index 2.
English
























