Python code to run for next 100 days from today
<p>I want to run below line of code for 200 days from today. 
Suppose today is 1st days so my code is- </p>

<pre><code>line = linecache.getline("lines1.txt",1)
print(line)
</code></pre>

<p>Suppose today is 2nd days so my code is-</p>

<pre><code>line = linecache.getline("lines1.txt",2)
print(line)
</code></pre>

<p>Suppose today is 3rd days so my code becomes-</p>

<pre><code>line = linecache.getline("lines1.txt",3)
print(line)
</code></pre>

<p>I want above 1,2,3,4,5......200 to be calculated everyday. I don't want a loop to run for 200 days. </p>

<p>I just need to get 1,2,3,4,5......200 count from python Date system or any other counting system. </p>

<p>set a marker date then calculated difference between today dan marker date</p>

<pre><code>(datetime.datetime(2016,9,2) - datetime.datetime(2016,9,1) ).days
output:
1
</code></pre>

python python-3.x linecache