I want to take a simple matrix as input in a 2-D array, but get a Runtime Error - NZEC error.
Matrix -
1 2
3 4
my input code -
for i in range(2):
a[i]=[int(i) for i in input().split()]
print(a)
I want to take a simple matrix as input in a 2-D array, but get a Runtime Error - NZEC error.
Matrix -
1 2
3 4
my input code -
for i in range(2):
a[i]=[int(i) for i in input().split()]
print(a)