Skip to content

Commit 4f64490

Browse files
committed
💻 Update Practice examples
1 parent 1850e40 commit 4f64490

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

0. Python Files/20. 2D List.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
matrix = [
2+
[1,2,3],
3+
[4,5,6],
4+
[7,8,9]
5+
]
6+
7+
# print(matrix[0][1])
8+
9+
# matrix[0][1] = 100
10+
# print(matrix[0][1])
11+
12+
for row in matrix:
13+
print(row)
14+
15+
print()
16+
17+
for row in matrix:
18+
for element in row:
19+
print(element)

0 commit comments

Comments
 (0)