MCQ
What is the output of the following code? a=[13,56,17] a.append([87]) a.extend([45,67]) print(a)
  • [13, 56, 17, [87], 45, 67].
  • B
    [13, 56, 17, 87, 45, 67].
  • C
    [13, 56, 17, 87,[ 45, 67]].
  • D
    [13, 56, 17, [87], [45, 67]].

Answer

Correct option: A.
[13, 56, 17, [87], 45, 67].
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