title: How do I print out a list as a matrix?
body: <p>Sorry for the noob-level question, but I'm trying to take a list of 10 names and put them into a 3x4 matrix, but I'm unsure how to do this when the input of the values was made by a loop.</p>
  
  <p>So instead of going <code>student0 = raw_input("Enter student 1's name: ")</code> ten times I have</p>
  
  <pre><code>students = []
  for num in range(1, 11):
    students.append({
      "name": raw_input("Enter Student %i's name: " % num),
      "absences": raw_input("Enter Student %i's absences: " % num)
    })
  </code></pre>
  
  <p>but with the second (and more preferred) form, I don't know how to make the matrix. Before I could just type something like:</p>
  
  <pre><code>print("\n\n Student Seating: \n")
  matrix = [[student0 + '\t\t', student1 + '\t\t', student2 + '\t\t'], [student3 + '\t\t', student4 + '\t\t', student5 + '\t\t'], [student6 + '\t\t', 'Empty' + '\t\t', student7 + '\t\t'], ['Empty' + '\t\t', student8 + '\t\t', student9 + '\t\t']]
  for row in matrix:
      print ' '.join(row)
  </code></pre>
  
  <p>But now (obviously) that doesn't work.. How would I fix this so I can take my list and put it into matrix (3x4) format? Sorry again for the stupid question, and thanks very much in advance for any help!</p>