0
I’m wondering how to create an array in python, but the input would be the whole matrix. I tried to make:
matrix=[]
for r in range(5):
row=[]
for c in range(5):
row.append(input().split())
matrix.append(row)
But still error and can not read the input below:
0 0 0 0 0
0 0 0 0 1
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
What would be the best way to read her whole without using numpy and panda??
worked, thank you very much
– Pedro Santana