title: TypeError: 'int' object is not subscriptable .....?
body: <pre><code>  if (a % 2 == 0 and b % 2 == 0) or (a % 2 == 0 and b % 3 == 0):
            pav=0
            pas=1
            for i in range(a):
                for j in range(b):
                    if(matrix[i][j]==0 and i+1&lt;=a and j+1&lt;=b):
                        if(matrix[i][j+1]==0 and matrix[i+1][j]==0):
                            a[i][j]=a[i][j+1]=a[i+1][j]=pas
                            pas+=1
                            pav+=1
                    if matrix[i+1][j+2]==0:
                        if(matrix[i][j+2]==0 and matrix[i+1][j+1]==0):
                           matrix[i+1][j+2]=matrix[i][j+2]=matrix[i+1][j+1]=pas
                           pas+=1
                           pav+=1
  </code></pre>
  
  <p>Traceback (most recent call last): </p>
  
  <p>File "C:/Users/Loading/PycharmProjects/Test/test.py", line 14, in 
      example.check_numbers(matrix,a, b)</p>
  
  <p>File "C:\Users\Loading\PycharmProjects\Test\venv\example.py", line 30, in check_numbers
      a[i][j]=a[i][j+1]=a[i+1][j]=pas</p>
  
  <p>TypeError: 'int' object is not subscriptable</p>