Python Programming Tutorial: Introduction to Lists (Part 7), Two-Dimensional Lists

preview_player
Показать описание
In this video, we talk about two-dimensional (2D) lists. You can think about lists in a couple different ways. The most common is to think of them as modeling a table with rows and columns. Personally, I like to think of them as lists of lists.

A 2D list is basically just a list that has lists as elements.

In the video, I show you how to declare them, how to access their elements using indices (indexes?), and finally how to do some basic processing using nested loops.
Рекомендации по теме