title: AttributeError: 'list' object has no attribute 'shape' , how sould i fix this type of error?
body: <blockquote>
    <p>AttributeError: 'list' object has no attribute 'shape'</p>
  </blockquote>
  
  <p>I am trying to make the code for row and column for given array.
  and the top line is my error, how can it be fixed?</p>
  
  <pre><code>def comuteFinalGrades(grades):
      a=[]
      N, M = grades.shape
  </code></pre>