Computer Science
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.
Linear Lists
3 Likes
Answer
(a)
Both Assertion and Reason are true and Reason is the correct explanation of Assertion.
Explanation
A list that has lists as its elements, with each element-list having a different shape, i.e., a different number of elements, is a ragged 2D list, also known as an irregular 2D list.
Answered By
3 Likes
Related Questions
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.
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.
What are data structures ? Name some common data structures.
Is data structure related to a data type ? Explain.