...

/

Exercise 4: Check Leap Year

Exercise 4: Check Leap Year

In this exercise, you will write a method that takes a year as input and returns in boolean form if it is a leap year or not.

Problem Statement

Write a method leap_year? that takes a year (a number), and determines if it is a ...

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy