This repository has been archived on 2022-05-03. You can view files and clone it, but cannot push or open issues/pull-requests.
2022-05-03 21:58:03 +02:00
|
|
|
#Aufgabe 1a)
|
|
|
|
my_list = [[3,0,-2,11],[0,0,9,3],[0,7,0,0],[0,0,0,-3]]
|
2022-05-02 20:29:56 +02:00
|
|
|
|
2022-05-03 21:58:03 +02:00
|
|
|
#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)
|
2022-05-03 21:47:07 +02:00
|
|
|
|
2022-05-03 21:58:03 +02:00
|
|
|
#Aufgabe 1d)
|
2022-05-03 21:47:07 +02:00
|
|
|
for i, row in enumerate(my_list):
|
|
|
|
for j, item in enumerate(row):
|
|
|
|
print(f'a[{i}] [{j}] = {item} ', end=' ')
|
|
|
|
print()
|