For a list, L = [3, 6, 7, 3, 10, 1, 3], what will the list look like after you perform L.pop(3)?

  • [6, 7, 3, 10, 1, 3]
  • [3, 6, 7, 10, 1, 3]
  • [3, 6, 7, 3, 10, 1]
  • [6, 7, 10, 1]

L.pop(i) pops the element at the ith index from the given list. Hence, L.pop(3) pops the element at the third index in the list L; in this case, 3. 

Comments