Identify the correct output of the following Python code : L=[3,3,2,2,1,1]…

PYQ KVS TGT/PGT 2023

Identify the correct output of the following Python code :

L=[3,3,2,2,1,1]
L.append(L.pop(L.pop()))
print(L)
  1. A.

    [3, 2, 2, 1, 3]

  2. B.

    [3, 3, 2, 2, 3]

  3. C.

    [1, 3, 2, 2, 1]

  4. D.

    [1, 1, 2, 2, 3, 3]

Attempted by 1772 students.

Sign up free to check your answer

Sign up free

Explore the full course: Kvs Nvs Tier 2 Computer Science

Loading lesson…