title: Want to skip last and first 5 lines while reading file in python
body: <p>If I want to see only data between line number 5 to what comes before last 5 rows in a file. While I was reading that particular file.</p>
  
  <p>Code I have used as of now :</p>
  
  <pre><code>f = open("/home/auto/user/ip_file.txt")
  lines = f.readlines()[5:] # this will start from line 5 but how to set end
  for line in lines:
          print("print line ", line )
  </code></pre>
  
  <p>Please suggest me I am newbie for python.
  Any suggestions are most welcome too.</p>