diff --git a/leap_year.py b/leap_year.py new file mode 100644 index 0000000..5289d08 --- /dev/null +++ b/leap_year.py @@ -0,0 +1,10 @@ +def is_leap(year): + leap = False + + # Write your logic here + return(year%400==0) or ((year%4==0) and (year%100!=0)) + + return leap + +year = int(input()) +print(is_leap(year))