Python List Comprehensions - Join with For loop
<p>I am trying to generate URLs as follows:</p>

<p><a href="http://ergast.com/api/f1/2000/qualifying?limit=10000" rel="nofollow">http://ergast.com/api/f1/2000/qualifying?limit=10000</a></p>

<p>I am using Python to generate URLs for the years 2000 to 2015, and to that end, wrote this code snippet:</p>

<pre><code>url = "http://ergast.com/api/f1/"
year = url.join([str(i) + "/qualifying?limit=10000" + "\n" for i in range(1999, 2016)])
print(year)
</code></pre>

<p>The output is:</p>

<pre><code>1999/qualifying?limit=10000
http://ergast.com/api/f1/2000/qualifying?limit=10000
http://ergast.com/api/f1/2001/qualifying?limit=10000
http://ergast.com/api/f1/2002/qualifying?limit=10000
http://ergast.com/api/f1/2003/qualifying?limit=10000
http://ergast.com/api/f1/2004/qualifying?limit=10000
......
http://ergast.com/api/f1/2012/qualifying?limit=10000
http://ergast.com/api/f1/2013/qualifying?limit=10000
http://ergast.com/api/f1/2014/qualifying?limit=10000
http://ergast.com/api/f1/2015/qualifying?limit=10000
</code></pre>

<p>How do I get rid of the first line? I tried making the range (2000, 2016), but the same thing happened with the first line being 2000 instead of 1999. What am I doing wrong? How can I fix this?</p>