title: Creating a nested list from an imported single column file
body: <p>I am wanting to open a text file where the first line gives the number of rows in the grid and the second line gives the number of columns.  All values after that should be added to the nested list one row at a time.  Not sure how to do this, any help is appreciated!</p>
  <pre><code>    with open(filename, 'r') as gridFile:
          grid = []
          for line in gridFile:
              if line == 0:
                  rows = int(line)
              if line == 1:
                  col = int(line)
              else:
                  # add the values row by row
  
  </code></pre>