title: Splitting matrix input in Python
body: <p>I would like to get the input of a 5x5 matrix in a way like this:
  (input could even be strings)</p>
  
  <pre><code>12345
  67894
  12345 
  65431
  </code></pre>
  
  <p>i.e getting 5 elements/ line.</p>
  
  <p>So I've chosen the below method in python:</p>
  
  <pre><code>for i in range(5):
      j = 0
      a[i][j], a[i][j+1], a[i][j+2], a[i][j+3], a[i][j+4] = raw_input() 
  </code></pre>
  
  <p>Now the problem is that I wasn't able to get the matrix input, if the n value becomes 3, 7 etc any other than 5, Since I've declared like this </p>
  
  <pre><code>a[i][j], a[i][j+1], a[i][j+2], a[i][j+3], a[i][j+4] = raw_input() 
  </code></pre>
  
  <p>Please someone help me to achieve this.</p>