wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

What do you mean by nesting of list?


Open in App
Solution

A list that occurs as an element of another list (which may ofcourse itself be an element of another list etc) is known as nested list.

Common reasons nested list arise are as follows:

1. They are matrices
2. Lists are being used for what in other languages is known as structs, records or tuples
3. A tree is encoded as a list where the subtrees occur as elements


flag
Suggest Corrections
thumbs-up
20
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Collection and Organisation of Data
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon