title: How do I print specific lines of a file in python?
body: <p>I'm trying to print everything in a file with python. But, whenever I use python's built-in readfile() function it only print the first line of my text file. Here's my code:</p>
  
  <pre><code>File = open("test.txt", 'r', 0)
  line = File.readline()[:]
  print line
  </code></pre>
  
  <p>and thank you for everyone that answers</p>
  
  <p>and to make my question clearer every time I run the code it prints only "word list food</p>