title: Reading a file into a multidimensional array with Python
body: <p>If I have a text file like this:</p>
  
  <pre><code>Hello World
  How are you?
  Bye World
  </code></pre>
  
  <p>How would I read it into a multidimensional array like this:</p>
  
  <pre><code>[["Hello", "World"],
   ["How", "are", "you?"],
   ["Bye" "World"]]
  </code></pre>
  
  <p>I have tried:</p>
  
  <pre><code>textFile = open("textFile.txt")
  lines = textFile.readlines()
  for line in lines:
      line = lines.split(" ")
  </code></pre>
  
  <p>But it just returns:</p>
  
  <pre><code>["Hello World\n", "How are you?\n", "Bye World"]
  </code></pre>
  
  <p>How do I read the file into a multidimensional array?</p>