# How to loop for every month in a range of years for i in range(120): #(120 months in 10 years) print(date(2000 + i//12, i%12 + 1, 1))