Q. What are ragged lists? How are these different from two dimensional lists?
Answer =
A list that contains lists with different shapes as its elements and it is also a 2D list but it is an irregular 2D list that is called ragged list.
• The regular 2D lists are the lists having lists of same sizes as its elements and that means its rows have equal sizes. On the other hand, the ragged list are also nested lists with rows of different sizes.
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )