From 6a17f2c202e53f2e41318190e56b93b73f0577fd Mon Sep 17 00:00:00 2001 From: Tom Pughe <147526382+TomPughe@users.noreply.github.com> Date: Mon, 17 Jun 2024 16:30:11 +0100 Subject: [PATCH] adding exercise files --- 100daysofcode.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 100daysofcode.py diff --git a/100daysofcode.py b/100daysofcode.py new file mode 100755 index 0000000..4df72eb --- /dev/null +++ b/100daysofcode.py @@ -0,0 +1,10 @@ +from datetime import date + +start = date(2020, 1, 1) +today = date.today() +delta = today - start + +if (delta.days < 101): + print("Today is day {}".format(delta.days)) +else: + print('100 Days of Code sprint has ended')