Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def leap_years(start_year, end_year):
- list = [i for i in range(start_year, end_year+1) if i % 4 == 0 and (i % 100 != 0 or i % 400 == 0)]
- return list
- print(leap_years(1900,2000))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement