title: how do I append multiple lines from a url into a list?
body: <p>I am trying to read a url which contains words on each line, and I want to take each line from the url and append it to my list. With the code I have, it only appends the first line from the url and then stops. I thought that my for-loop would solve this problem, but it doesn't. I've put my code below, which also includes the url I am referring to.</p>
  <pre><code>import urllib.request
  
  listOfStrings = []
  try:
     with urllib.request.urlopen('https://www.cs.queensu.ca/home/cords2/bingo.txt') as f:
         for line in f:
             d = f.read().decode('utf-8')
             split = d.split(&quot;\n&quot;)
             listOfStrings.append(line)
  except urllib.error.URLError as e:
      print(e.reason)
  print(listOfStrings)
  </code></pre>