Identify the correct output of the Python code: TUP=([1, 2], [3, 4], [5, 6])…

PYQ KVS TGT/PGT 2023

Identify the correct output of the Python code: TUP=([1, 2], [3, 4], [5, 6]) TUP[2][1]=8 print(TUP)

  1. A.

    ([1, 2], [8, 4], [5, 6])

  2. B.

    ([1, 2], [3, 4], [8, 6])

  3. C.

    ([1, 2], [3, 4], [5, 8])

  4. D.

    will generate an error as a Tuple is immutable

Attempted by 2282 students.

Sign up free to check your answer

Sign up free

Explore the full course: Kvs Nvs Tier 2 Computer Science

Loading lesson…