id/email
password
forgot password | create account
about | help | prefs
ReadingBatcode reading practice

 

 

Athenian: Grab Bagleap_year

prev  |  next  |  chance

When is the next leap year after the given year?
by Aiden '24

def next_leap_year(current_year):
    final = current_year - current_year % 4
    return final + 4
Function Call  Return Value
next_leap_year(2018)
next_leap_year(2020)
next_leap_year(2055)
next_leap_year(37669)

Experiment with this code on Gitpod.io

⬅ Back