Question: Python: A year is a leap year if it is divisible by 4, unless it is a century year (divisible by 100) that is not

Python:

A year is a leap year if it is divisible by 4, unless it is a century year (divisible by 100) that is not divisible by 400. (1800 and 1900 are not leap years while 1600 and 2000 are.) Edit leap_year.py to write a Python program that asks the user to enter the year and then displays a message telling whether the year is a leap year

Step by Step Solution

3.46 Rating (162 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Solution Here I am attaching the Python script to che... 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!