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
Solution Here I am attaching the Python script to che... View full answer
Get step-by-step solutions from verified subject matter experts
