0
can anyone tell me what's wrong in this code??
iam taking input in a matrix. a=[] for i in range(0,2): for j in range(0,2): x=int(input()) a[i][j]=x print(a) print("elements are : ") for i in range(0,2): for j in range(0,2): print(a[i][j]) print("\n")
1 Odpowiedź
0
first, don't make 0 explicit in the range function, it is ALWAYS assumed when only one argument is passed.
Then, I don't really know, actually. I don't see anything wrong at first sight.
What, specifically, is your problem with the code ?