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])?
  1. Hello
  2. 1
  3. Hi
  4. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.