In Python, the ________ method removes and returns the item at the given index.

2025

In Python, the ________ method removes and returns the item at the given index.

  1. A.

    append( )

  2. B.

    Extend( )

  3. C.

    POP( )

  4. D.

    remove( )

Attempted by 36 students.

Show answer & explanation

Correct answer: C

The pop() method in Python lists removes an element at a specified index and returns it. If no index is provided, it defaults to the last item.

Explore the full course: Mppsc Assistant Professor