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)
- A.
([1, 2], [8, 4], [5, 6])
- B.
([1, 2], [3, 4], [8, 6])
- C.
([1, 2], [3, 4], [5, 8])
- D.
will generate an error as a Tuple is immutable
Attempted by 2282 students.
Sign up free to check your answer
Sign up freeLoading lesson…

