0

help understand lists

Help

28th Oct 2021, 8:15 AM
Masingita Hobyane
2 Respuestas
+ 2
Masingita Hobyane Have you ever seen a filing cabinet? It is a container which holds items in a particular order. A filing cabinet with 4 drawers could be considered to be a list with 4 items. cabinet[0] is the top drawer cabinet[3] is the bottom drawer In the drawers may be a single item, or may be a number of folders. A number of folders could be considered to be a nested list, because it is possible to reference the folder by it position/index. The same concept applies to the contents of the folder. Example: cabinet[0][4][3] refers to: Top drawer 5th folder 4th item in folder
28th Oct 2021, 8:29 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Thnx
28th Oct 2021, 8:38 AM
Masingita Hobyane