title: Loop over list of years
body: <p>I want to loop over a list of years and compute a national holiday that varies by date every year. I have come across some libraries that I can use for this, but I fail to implement them for all years in a for-loop.</p>
  <pre><code>from datetime import date
  from dateutil.easter import easter
  from dateutil.relativedelta import relativedelta as rd
  
  #range of years I want to compute this date for
  year = list(range(2008,2019))
  
  for i in year:
      e = easter(year)
      maundy_thursday = e - rd(days=3)
  </code></pre>
  <p>Error:</p>
  <pre><code>---------------------------------------------------------------------------
  TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-150-1691b0469173&gt; in &lt;module&gt;
        2 
        3 for i in year:
  ----&gt; 4     e = easter(year)
        5     maundy_thursday = e - rd(days=3)
        6     good_friday = e - rd(days=2)
  
  C:\ProgramData\Anaconda3\lib\site-packages\dateutil\easter.py in easter(year, method)
       64 
       65     y = year
  ---&gt; 66     g = y % 19
       67     e = 0
       68     if method &lt; 3:
  
  TypeError: unsupported operand type(s) for %: 'list' and 'int'
  </code></pre>