Home »
Python »
Python List MCQs
What will be the output of the following multidimensional list statement?
17. What will be the output of the following multidimensional list statement
l1=[["hello",1,2,3], ["Hi"," everyone"," How"," Are"," You"]]
print(l1[1][1])?
- Hello
- 1
- Hi
- Everyone
Answer: D) Everyone
Explanation:
The output would be – Everyone. As the whole list contains 2 other lists it means the original list contains only two indexes 0,1.