Vidyalelo
Python · Q115

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 115

Q115

What will be the output of the following Python code? a=[10,23,56,[78]] b=list(a) a[3][0]=95 a[1]=34 print(b)

A.
[10,34,56,[95]]
B.
[10,23,56,[78]]
C.
[10,23,56,[95]]
Answer
D.
[10,34,56,[78]]

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board