Answers for "python loop every month datetime"

1

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))
Posted by: Guest on June-18-2021

Python Answers by Framework

Browse Popular Code Answers by Language