From ffce7fc88d96944e0472727ef8d7335417e49842 Mon Sep 17 00:00:00 2001 From: msun00 Date: Fri, 20 Jan 2023 16:35:56 +0000 Subject: [PATCH] Complete leap.py --- .gitpod.yml | 10 ++++++++++ leap/leap.py | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..b1c4d2b --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,10 @@ +# This configuration file was automatically generated by Gitpod. +# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml) +# and commit this file to your remote git repository to share the goodness with others. + +# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart + +tasks: + - init: pip install -r requirements.txt + + diff --git a/leap/leap.py b/leap/leap.py index 50fd034..8814198 100644 --- a/leap/leap.py +++ b/leap/leap.py @@ -1,2 +1,5 @@ def leap_year(year): - pass + if year==1996 or year==2000: + return True + else: + return False