What will be the syntax to use the Len function to get the size of the following list?

19. What will be the syntax to use the Len function to get the size of the following list

l1=[["hello",1,2,3], ["Hi"," everyone"," How"," Are"," You"]]?
  1. Print(len(l1)
  2. Print (len[l1])
  3. Print ([ len (l1)])

Answer: A) Print(len(l1)

Explanation:

To get the size of any list we will use the following syntax: - Print(len(l1), where l1 is the name of the list.

Comments and Discussions!

Load comments ↻






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