years = range(2022, 2026)
months = range(1, 13)
def getDays(year, month):
days = range(1, 32)
if month == 2:
if year % 4 == 0:
days = range(1, 30)
else:
days = range(1, 29)
elif month in [4, 6, 9, 11]:
days = range(1, 31)
return days
for year in years:
for month in months:
str_m = str(month).rjust(2, '0')
print(f"{year}-{str_m}",getDays(year, month))