+ 3
The determinant of a matrix
https://code.sololearn.com/cr4TJ12tmovk/#py This is my first program. I suppose it looks easy. How I can add "input" function there? Could you give me some advice, please? Some fixes?
2 Antworten
+ 4
a = []
n = int(input('Input number of rows: '))
k = int(input('Input number of columns: '))
for i in range(k):
a.append([])
for j in range(n):
a[i].append(int(input()))
print(a)
+ 2
the code is good and it's no problem without it
it's determinant for third order matrix