Question: Write a python program that ask the user the year number. You need to check if this year is a leap year. The rules in
Write a python program that ask the user the year number. You need to check if this year is a leap year.
The rules in Gregorian calendar are as follows:
a year is a leap year if its number is exactly divisible by and is not exactly divisible by
a year is always a leap year if its number is exactly divisible by
Warning. The output should be as follows:
is a leap year
is a common year
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
