title: How to fetch the second line data from text file in Python
body: <p>How to fetch the second line data from text file in Python.</p>
  <p>I have a text file and in file there are some data in line by line_</p>
  <pre><code>Dog
  Cat
  Cow
  </code></pre>
  <p>How to fetch the second line which is “Cat” and store in a variable in python</p>
  <pre><code>var =    # “Cat”
  </code></pre>