![]() | ![]() |
A nested list is a list as an item in another list.
Example
Start IDLE.
Navigate to the File menu and click New Window.
Type the following:
list_mine=[“carrot”, [9, 3, 6], [‘g’]]
Exercise
Write a nested for the following elements: [36,2,1],”Writer”,’t’,[3.0, 2.5]