I've been trying to create a matrix, with single line input, like, if I enter "1 2 3" it should go like l[0][0]=[1,2,3]
for i in range(num):
for j in range(num):
l[i][j] = input().spilt()
It gives index out of range error, which I understand why it gives, since we are fixing j index at point of loop, which means we locking it to one entry and giving multiple input, which is contradicting, for removing the limiter, I modified it like this:
for i in range(num):
l[i] = input().spilt()
I know this totally wrong, It is no where near to 2D matrix, but I'm totally screwed thinking over this.