Computer Science
Suggest a situation where you can use ragged list ?
Linear Lists
3 Likes
Answer
Suppose we are building a program to store information about different families and their members. In this program, each family can have a variable number of members, making it suitable to use a ragged list.
Answered By
3 Likes
Related Questions
Suggest a situation where you can use a regular two dimensional list.
What are ragged lists ? How are these different from two dimensional lists ?
How are lists internally stored ? How are 2D lists internally stored ?
Create a list SqLst that stores the doubles of elements of another list NumLst. Following code is trying to achieve this. Will this code work as desired ? What will be stored in SqLst after following code ?
NumLst = [2, 5, 1, 7, 3, 6, 8, 9] SqLst = NumLst * 2