Skipping lines in a txt file and returning them : <p>I need some help completing this problem. I have no idea how to tackle this at all and I need to finish it.</p>

<p>"Q: Sometimes, when processing a file, some number of header, comment, or documentation lines at the beginning of a file must be omitted from the processing and skipped over before processing the remaining lines in the file. Consider the addition of parameter, skiplines with a default value of 0 for the previous problem:</p>

<p>lineLengths(filepath, skiplines=0)
The function should skip the specified number of lines and then, for the remainder of the lines, compute a list of (line number, line length) tuples, one per processed lines. The line number advances, even for the skipped lines. Line lengths should exclude any leading or trailing whitespace (spaces, tabs, trailing newline). So for the tennyson.txt file:</p>

<p>Twilight and evening bell,<br>
  And after that the dark!     </p>

<p>And may there be no sadness of farewell,<br>
  When I embark;<br>
the result of lineLengths("tennyson.txt", skiplines=2) is the list of tuples: [(3, 0), (4, 40), (5, 14)] since lines 1 and 2 are skipped, and line 3 is an empty line, consisting of just a newline."</p>
