Your question is Printing Leap Years. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
MORSE simulation timelines may need a list of calendar years that contain an extra day. Given an inclusive range of years, return every leap year in that range in ascending order.
A year is a leap year under the Gregorian calendar if it is divisible by 4, except for century years, which must also be divisible by 400. For example, 2000 is a leap year, while 1900 is not.
Implement leap_years_since(start_year, end_year).
start_year and end_year, representing the inclusive range to inspect.start_year through end_year, in ascending order.def leap_years_since(start_year, end_year):