filmov
tv
Python edabit Challenge : Length of a Nested List

Показать описание
Follow on IG @GeeksDoByte & @Rayen_905
Request Solutions, I would love to make videos for more challenges!
Need Help with HW solutions or coding ?
I do python java swift kotlin
Length of a Nested List
Python's len() method will return the number of elements in a list. For example, the list below contains 2 elements:
Suppose we instead wanted to know the total number of non-nested items in the nested list. In the above case, [1, [2, 3]] contains 3 non-nested items, 1, 2 and 3.
Create a function that returns the total number of non-nested items in a nested list.
Request Solutions, I would love to make videos for more challenges!
Need Help with HW solutions or coding ?
I do python java swift kotlin
Length of a Nested List
Python's len() method will return the number of elements in a list. For example, the list below contains 2 elements:
Suppose we instead wanted to know the total number of non-nested items in the nested list. In the above case, [1, [2, 3]] contains 3 non-nested items, 1, 2 and 3.
Create a function that returns the total number of non-nested items in a nested list.