Join Barron Stone for an in-depth discussion in this video Multidimensional lists, part of Programming Foundations: Real-World Examples.
- Basic lists are fairly easy to understand…because they're just a simple sequence of items.…However, things can get a bit more complicated…when we embed lists inside of other lists…to create two-dimensional or even three-dimensional lists…which can be a bit harder to visualize.…That's one of the reasons I like to think of objects…in a list as cars in a parking lot.…To index my car in a two-dimensional parking lot,…I need to know two pieced of information.…First, I need to know which row I'm parked on…and then I need to know…at which spot along that row I parked.…
The same concept can be extended…to three-dimensional lists of lists of lists…and that's like a multi-story parking garage.…To index my car in there, I need to know three things.…First, which floor I parked on.…Next, I need to know which row on that floor I parked.…And finally, which spot along that row, on that floor,…I'm parked in.…Now, my analogy has to end here because…a four-dimensional parking lot doesn't exist in real life…but software lists don't have to stop…
- Reusing functions
- Local vs. global variables
- Creating and naming custom objects
- Class inheritance
- Modules and packages
- Multidimensional lists and tuples
- Queues and stacks
- Creating and combining sets
- Storing data in dictionaries
- If/else and switch statements
- For vs. while loops
- Error handling
- Polling and event-driven programming
Skill Level Beginner
Programming Foundations: Design Patternswith Elisabeth Robson2h 19m Intermediate
3. Class Inheritance
4. Modules and Packages
5. Lists and Tuples
6. Queues and Stacks
9. Conditional Execution
11. Error Handling
12. Polling and Event-Driven Programming
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.