Computer Science
What is a nested list ? Give some examples.
Linear Lists
2 Likes
Answer
A list that has one or more lists as its elements is a nested list.
For example: a = [11, [2, 23]], b = [[11, 3], [5, 6], [9, 8]]
Answered By
1 Like
Related Questions
Enlist some advantages of list comprehensions.
In which situations should you use list comprehensions and in which situations you should not use list comprehensions ?
What is a two dimensional list ? How is it related to nested lists ?
Suggest a situation where you can use a regular two dimensional list.