2D List in Python

preview_player
Показать описание
In this lesson, we are going to learn Python 2D lists. Python 2D lists are very useful in machine learning and data science. However, it is not limited to these applications only. Whenever we talk about 2D space, it is nothing but a 2D list from a programming concept. So, whether you work with a data table, or matrix, or a 2D cartesian coordinate system, you need a 2D list. We have learned about the wide range of applications of 2D lists.

Now it is time to learn how to create a 2D list using Python. After learning how to create the 2D list in Python, we will see what we can do. For example –
1. How to access the rows of the 2D list,
2. How to access individual values,
3. How to change an element, and
4. How to use ‘Nested For Loop’ in 2D lists.

As a frequently used data structure, it is essential to learn the programming concepts of 2D lists. And this lesson is the most comprehensive, explained with animation and info-graphics, which helps you learn everything about 2D lists in Python.
Рекомендации по теме
Комментарии
Автор

What should I do if I only want to fill one row up with a bunch of items using a for loop?

In other words, how do I pass through columns instead of rows?

randomname