title: Creating a list from a text file
body: <p>I have a text file called <code>my_urls.txt</code> that has 3 URLs:</p>
  <pre><code>example1.com
  example2.com
  example3.com
  </code></pre>
  <pre><code>with open(&quot;../test_data/my_urls.txt&quot;, &quot;r&quot;) as urlFile:
      urls_list = urlFile.readline().split('\n')
      print(urls_list)
  
  
  ['example1.com', '']
  </code></pre>
  <p>I wonder why <code>urls_list</code> is not giving me <code>['example1.com', 'example2.com', 'example3.com']</code></p>