I just wrote Python code to solve this
problem:
Write a generator that will return a sequence of month names.
Thus
gen = next_month('October')
creates a generator that generates the strings 'November',
'December', 'January' and so on.
If the caller supplies an illegal month name, your function should
raise a ValueError exception with text explaining the problem.
Here is my code:
month_names = ['January', 'February', 'March', 'April', 'May',
'June',
'July', 'August', 'September', 'October', 'November',
'December']
def next_month(name: str) -> str:...