title: Creating a table from a file
body: <p>I have to write a program that creates a partial magic square table.
  When running my program the table is printed like this : </p>
  
  <pre><code>[int, int, int, int] [int, int, int, int] [int, int, int, int].
  </code></pre>
  
  <p>I would like for it to print my table out as so:</p>
  
  <pre><code>[int, int, int, int]
  [int, int, int, int]
  [int, int, int, int]
  </code></pre>
  
  <p>My question is, how can I go about this when it is reading it from a text file?
  my following code attempt is this:</p>
  
  <pre><code>text_file = input("Enter the name of the text file: ")
  text = open(text_file, "r")
  N = int(input("Enter the magic number: "))
  print("This is the table")
  table = []
  nested_list = []
  table = text.readlines()
  
  
  i = 0
  for line in table:
      line = line.rstrip()
      line = line.split(" ")
      nested_list = []
  
      for number in line:
          nested_list.append(int(number))
  
      table[i] = nested_list
      i += 1
  for index in range(1):
      print(table)
  </code></pre>