Computer Science
Assertion. A list having one or more lists as its elements is called a nested list.
Reason. Two or more lists as part of another data structure such as dictionaries or tuples, create nested lists.
Linear Lists
2 Likes
Answer
(b)
Both Assertion and Reason are true but Reason is not the correct explanation of Assertion.
Explanation
A nested list is a list having one or more lists as its elements. Nested lists can be elements within other data structures like dictionaries or tuples. But nested lists can exist independently and are commonly used in Python programming to represent multi-dimensional lists.
Answered By
2 Likes
Related Questions
A regular 2D list has same shape of all its elements.
Assertion. A linear list refers to a named list of finite number of similar data elements.
Reason. Similar type of elements grouped under one name make a linear list.
Assertion. A list having same-sized lists as its elements is a regular 2D list.
Reason. When similar sequences such as tuples, dictionaries and lists become part of another data structure, they make a regular 2D list.
Assertion. A list having lists as its elements with elements being different-shaped make a ragged 2D list.
Reason. A list having different-sized lists as its elements make an irregular 2D list.