9 lines
335 B
Python
9 lines
335 B
Python
|
from local import is_leap_year
|
||
|
|
||
|
def weekday_newyear(year):
|
||
|
daySum = sum([366 if is_leap_year(year) else 365 for year in range(year)])
|
||
|
return (daySum - 2) % 7
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
days = ['man', 'tir', 'ons', 'tor', 'fre', 'lor', 'son']
|
||
|
_ = [ print(f'{year} {days[weekday_newyear(year)]}') for year in range(1900, 1920) ]
|