Q. What is a two dimensional list? How is it related to nested lists?


Answer =

A two dimensional list is a list having lists as its elements and each element-list has the same shape i.e., same number of elements (length).

• 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 nested lists with rows of different sizes.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post