Printing alternate lines using python
<p>I have a text file like</p>

<pre>
1
2
3
4
5
6
7
8
9
10
</pre>

<p>... and so on.</p>

<p>How do I write a program to print the first 2 lines then skip 3 then print 2 lines (that's the pattern.)</p>

<p>I'm a complete noob.<br>
Any help will be appreciated.</p>

<p>thanks.</p>
