Q. What are nested lists?
Answer :-
When a list is contained in another list as a member-element, it is called nested list.
e.g., a = [2, 3, [4, 5]]
The above list a has three elements - an integer 2, an integer 3 and a list [4, 5], hence it is nested list.
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )