title: How do I read selected lines from a text file with Python
body: <p>Using Python version 3 </p>
  
  <p>I am using the code:</p>
  
  <pre><code>f = open("cinema.txt","r")
  print(f.read()) 
  </code></pre>
  
  <p>This then goes on to open the cinema text file. This text file contains 50 lines containing 50 movie titles.</p>
  
  <p>What I want to do is to be able to read for example line 5.
  I also want to be able to read for example lines 15-20.
  Can someone please advise what is the extra bit I need to add into the code.
  I have searched around on the Internet but I can't find an answer that work.  </p>