python loop every month datetime

# 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))

Here is what the above code is Doing:
1. It’s creating a range of 120 numbers (0-119)
2. It’s looping through each number in the range
3. It’s printing the date for each number in the range
4. The date is calculated by adding the number to the starting date (2000-01-01)
5. The starting date is then converted to a date object
6. The date object is then converted to a string
7. The string is then printed