title: Simplifying a few rows of code using a for loop?
body: <p>While attempting to make a sudoku solving program, I encountered a small problem. That is, the amount of rows (lists) I want to append into a list.</p>
  
  <pre><code># These are the lists that i have to append
  
  row0 = [5,3,0, 0,7,0, 0,0,0]
  row1 = [6,0,0, 1,9,5, 0,0,0]
  row2 = [0,9,8, 0,0,0, 0,6,0]
  
  row3 = [8,0,0, 0,6,0, 0,0,3]
  row4 = [4,0,0, 8,0,3, 0,0,1]
  row5 = [7,0,0, 0,2,0, 0,0,6]
  
  row6 = [0,6,0, 0,0,0, 2,8,0]
  row7 = [0,0,0, 4,1,9, 0,0,5]
  row8 = [0,0,0, 0,8,0, 0,7,9]
  
  
  # And this, is what i want to avoid doing.
  
  rows.append(row0)
  rows.append(row1)
  rows.append(row2)
  
  rows.append(row3)
  rows.append(row4)
  rows.append(row5)
  
  rows.append(row6)
  rows.append(row7)
  rows.append(row8)
  </code></pre>
  
  <p>Is it possible to append all those lists, with help of a for loop or something similar?</p>