18 lines
438 B
Python
18 lines
438 B
Python
#Aufgabe 1a)
|
|
my_list = [[3,0,-2,11],[0,0,9,3],[0,7,0,0],[0,0,0,-3]]
|
|
|
|
#Aufgabe 1b)
|
|
#my_list = [[], [], [], []]
|
|
#MAX_LENGTH = 4
|
|
#for i in range(0, MAX_LENGTH):
|
|
# for j in range(0, MAX_LENGTH):
|
|
# n = int(input("Enter n:"))
|
|
# my_list[i].insert(j, n)
|
|
#
|
|
# print(my_list)
|
|
|
|
#Aufgabe 1d)
|
|
for i, row in enumerate(my_list):
|
|
for j, item in enumerate(row):
|
|
print(f'a[{i}] [{j}] = {item} ', end=' ')
|
|
print() |