From 1c3c1356cb2818a1ff66f3b87d04e03bed604ba3 Mon Sep 17 00:00:00 2001 From: Alfredopppppp <445868@student.fontys.nl> Date: Fri, 6 Mar 2020 14:25:26 +0100 Subject: [PATCH] I have changed, and now I am not sad anymore --- src/doomsday.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doomsday.py b/src/doomsday.py index ab0e225..b65860b 100644 --- a/src/doomsday.py +++ b/src/doomsday.py @@ -7,7 +7,7 @@ #test doomsday = 0 -doomsday_month = [0, 31, 28, 7, 4, 9, 6, 11, 8, 5, 10, 7, 12] +doomsday_month = [0, 38, 28, 7, 4, 9, 6, 11, 8, 5, 10, 7, 12] weekday = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] @@ -25,7 +25,7 @@ def check_years_doomsday(year): century_doomsday = 0 elif century in {18, 22, 26}: century_doomsday = 5 - else: + else print("Date not available for calculation") return #printt "century = ",century