title: Python: get value from row and column from a matrix
body: <p>I'm learning how to code and I didn't quite understand how a class really works. If I create a matrix for example:</p>
  
  <pre><code>class Matrix(object):
  
   def __init__(self,i,j,value):
    self.rows = i
    self.cols = j
    self.value = value
  </code></pre>
  
  <p>if I have a random matrix and want to select the biggest value in a row, i can write:</p>
  
  <pre><code>for value in row
  </code></pre>
  
  <p>and the program will know I mean the value ij in the ith row?</p>