id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

timggc@ggc.edu > leapYear
prev  |  next  |  chance

Create a function that returns True if year is a leap year and returns False if year is not a leap year. A leap year comes every 4th year except every 100th year unless it is the 400th year. For a more detailed explanation of a leap-year visit: http://en.wikipedia.org/wiki/Leap_year


leapYear(2004) → True
leapYear(2000) → True
leapYear(1999) → False

...Save, Compile, Run (ctrl-enter)

def leapYear(year):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Copyright Nick Parlante 2017 - privacy