Identify the correct output of the following Python code: TUP=(3, 1, 2, 4)…

PYQ KVS TGT/PGT 2023

Identify the correct output of the following Python code:

TUP=(3, 1, 2, 4)

sorted(TUP)

print(TUP)

  1. A.

    (3, 1, 2, 4)

  2. B.

    (1, 2, 3, 4)

  3. C.

    [3, 1, 2, 4]

  4. D.

    [1, 2, 3, 4]

Attempted by 289 students.

Sign up free to check your answer

Sign up free

Explore the full course: Kvs Nvs Tier 2 Computer Science

Loading lesson…