Question: Write a Python program to find leap years between 1 9 0 0 and 2 1 0 0 ( inclusive ) . Then asks the
Write a Python program to
find leap years between and inclusive
Then asks the user to enter a year between and inclusive If the user enters a year outside the specified range, show an error message: "Invalid input, please enter a year between and if the user's input is valid, the program should determine if the year is a leap year or not.
After displaying the result or error meassage, ask if the user wants to check another year. If the user responds with "yes", repeat the process. For any other response, end the program with "Thank you for using the leap year calculator. Goodbye!"
Hint: To check if a year is a leap year, it must be divisible by and not divisible by or not divisible by
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
