Question: 1. Write a program that takes a YEAR as input and prints whether it is a leap year or not. A year is considered

1. Write a program that takes a YEAR as input and prints whether it is a leap year or not. A year is considered a leap year if it is divisible by 4. However, if the year is divisible by 100, then it is not a leap year except when divisible by 400. See sample input and output for details. Sample Input 2022 2020 2000 2100 15 points Sample Output Not a leap year Leap year Leap year Not a leap year
Step by Step Solution
There are 3 Steps involved in it
Here is a simple Python program that takes a year as input and prints whether it is a leap year o... View full answer
Get step-by-step solutions from verified subject matter experts
