mirror of
https://github.com/correl/euler.git
synced 2024-11-23 19:19:53 +00:00
Created main() function in e019, missed it in the last commit.
git-svn-id: file:///srv/svn/euler@64 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
This commit is contained in:
parent
12c5dd7875
commit
672eb30f3e
1 changed files with 23 additions and 22 deletions
1
e019.py
1
e019.py
|
@ -20,6 +20,7 @@ class Day:
|
|||
def is_leap_year(year):
|
||||
return (year % 100 > 0 and year % 4 == 0) or (year % 400 == 0)
|
||||
|
||||
def main():
|
||||
year = 1900
|
||||
# 1/1/1900 was a Monday
|
||||
first_day = Day.MONDAY
|
||||
|
|
Loading…
Reference in a new issue