Question: Write a program with function leap-year() which takes a year as its argument and checks whether this year is a leap year or not

Write a program with function leap-year() which takes a year as its argument and checks whether this year is 

Write a program with function leap-year() which takes a year as its argument and checks whether this year is a leap year or not and then displays an appropriate message on screen. The program should stop. when the user inputs a leap year that is divisible by 5. Check the Sample output of this program: Enter a year to check if it's a leap year: 1999 1999 is not a leap year. Enter a year to check if it's a leap year: 2016 2016 is a leap year. 2016 is not devisable by 5 Enter a year to check if it's a leap year: 2000 2000 is a leap year. 2000 is devisable by 5 The End

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is a Python code for the program def leapyearyear Returns True if the given year is a leap year False otherwise if year 4 0 and year 100 0 or yea... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!