Jun-27-2020, 06:18 PM
(Jun-27-2020, 06:13 PM)ndc85430 Wrote: What is causing you difficulty? Given a year and a number of months, how would you work out what the new year should be? It's a pretty trivial problem.
def after_n_months(year, month): if month % 12 == 0: year += 1 return yearThis is what I have so far and it's VERY CLOSE.