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

 

gaurav1780@gmail.com 02_conditions > is_leap_year
prev  |  next  |  chance

Your first task is to search the criteria for leap year (and you'd be surprised it's a little more than what most think). Define a function that when passed the value for a year, returns True if it's a leap year, False otherwise.


is_leap_year(1900) → False
is_leap_year(1800) → False
is_leap_year(1700) → False

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

def is_leap_year(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

Difficulty: 3 Post-solution available

Copyright Nick Parlante 2017 - privacy