Generation

generate functionFri, 10 Feb 2023

check the year is leap or not

def check_leap_year(year): if year % 400 == 0: return True if year % 100 == 0: return False if year % 4 == 0: return True return False check_leap_year(2019)

Want to kickstart your project?Use the new AI Studio to create your code