title: I can't make sense of this code:
body: <p>I am trying to get into working with 2 dimensional lists/tuples because I want to use them for an idea I have. I have always had trouble understanding the for instruction, it just doesn't make any sense to me, it doesn't feel intuitive. The problem is that I just don't understand the <code>for</code> instruction. I got this code that displays this simple tuple:</p>
  
  <pre><code>m=((1,2),(3,4),(5,6))
  
  for i in range(len(m)):
      for j in range(len(m[i])):
          print(m[i][j]," ",end="")
          print()
  </code></pre>
  
  <p>This displays:</p>
  
  <pre><code>1 2
  3 4
  5 6
  </code></pre>
  
  <p>I don't really get what this parts of the code mean <code>(m[i])</code> and <code>m[i][j]</code> I know what <code>len</code> is for.</p>
  
  <p>Also I tried to change the [] to () because they are supposed to be part of a tuple but I get an error that says:</p>
  
  <blockquote>
    <p>TypeError occurred   Message='tuple' object is not callable</p>
  </blockquote>
  
  <p>If I remove parts of the code the result is displayed with parenthesis, but this code somehow removes all the parentheses from the tuple:</p>
  
  <pre><code>m=((1,2),(3,4),(5,6))
  
  for i in range(len(m)):
  
      print(m[i])
      print()
  </code></pre>
  
  <p>For example this one displays basically the same result but with the parentheses:</p>
  
  <pre><code>(1,2)
  (3,4)
  (5,6)
  </code></pre>
  
  <p>What is going on here?</p>
  
  <p><strong>EDIT:</strong> </p>
  
  <p><strong>BELOW IN THE ANSWERS I WROTE THE CODE THAT HELPED ME UNDERSTAND EVERYTHING I WASN'T UNDERSTANDING AND EXPLAINED IT, THANKS FOR ALL YOUR ANSWERS WOULDN'T BEEN ABLE TO DO THAT WITHOUT YOUR INPUT.</strong></p>