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..018ee40 100644 --- a/leap/leap.py +++ b/leap/leap.py @@ -1,2 +1,23 @@ +#def leap_year1(year): +# return("YEAH!") +# print(leap_year(1999)) + + + +#def leap_year2(year): +# return(year) + + def leap_year(year): - pass + if year % 100 == 0: + if year % 400 ==0: + return True + else: + return False + else: + if year % 4 == 0: + return True + else: + return False + +## DOES THIS WORK? \ No newline at end of file