MCQ
What is the output of the following piece of code when executed in Python shell? >>>a=(5,6) >>>b=(9,8) >>>c=a+b >>>c
  • (5, 6, 9, 8)
  • B
    (14,14)
  • C
    Error as the tuples are immutable
  • D
    None

Answer

Correct option: A.
(5, 6, 9, 8)
a

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free