title: How to create a list from a text file in Python
body: <p>I have a text file called "test", and I would like to create a list in Python and print it. I have the following code, but it does not print a list of words; it prints the whole document in one line.</p>
  
  <pre><code>file = open("test", 'r')
  lines = file.readlines()
  
  my_list = [line.split(' , ')for line in open ("test")]
  print (my_list)
  </code></pre>