I made a code to make the summary of the numbers of a matrix but i get this error TypeError: 'range' object is not callable and i don't know why Here is my code:
print ('The summary of the positive and negative numbers of a matrix')
A=[[0 for i in range (col)] for j in range (fil)]
fil=int(input('Number of columns'))
col=int(input('Number of rows'))
auxp=0
auxn=0
for i in range (fil):
for j in range (col):
A[i][j]=int(input('Numbers of the matrix'))
for i in range (fil)(col):
for j in range (fil):
if (A[i][j]>0):
auxp=aup+A[i][j]
else:
if (A[i][j]<0):
auxn=auxn+A[i][j]
print ('The summary of the positive numbers is ',auxp)
print ('The summary of the negative numbers is ',auxn)
TypeError Traceback (most recent call last)
<ipython-input-16-83bec8a1085e> in <module>
9 for j in range (col):
10 A[i][j]=int(input('Numbers of the matrix'))
---> 11 for i in range (fil)(col):
12 for j in range (fil):
13 if (A[i][j]>0):
TypeError: 'range' object is not callable