title: Type error encountered: how to correct it?
body: <p>I was trying to construct a matrix using Python 3.6.0 and in this program, while running it, I encountered a <strong>type error</strong> which stated that <em>'type' object is not subscriptable</em>.</p>
  
  <pre><code>#Matrix
  x=int(input("Enter number of rows of      matrix: "))
  y=int(input("Enter number of columns of matrix: "))
  for i in range(x-1):
    for j in range(y-1):
      list[i][j]=int(input("Enter the    elements of the matrix row-wise: "))
  print(list)
  </code></pre>
  
  <p>What does this message in the output mean?</p>
  
  <p>What wrong did I do and how should I correct it?</p>