title: Print a 2-d array , Matrix style with the element indices
body: <p>I am trying to print:</p>
  
  <pre><code>a[0][0] a[0][1] a[0][2]
  a[1][0] a[1][1] a[1][2]
  a[2][0] a[2][1] a[2][2]   
  </code></pre>
  
  <p>My attempt:</p>
  
  <pre><code>for i in range(n):
      for j in range(n):
          print("a[{}][{}]\t".format(i,j),end="")
      print("")
      print("a[{}][{}]\t".format(i,j),end="")
  </code></pre>
  
  <p>but I am getting the following output:</p>
  
  <pre><code>a[0][0] a[0][1] a[0][2]
  a[0][2] a[1][0] a[1][1] a[1][2]
  a[1][2] a[2][0] a[2][1] a[2][2]
  a[2][2]
  </code></pre>