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 1900 and 2100(inclusive).
Then asks the user to enter a year between 1900 and 2100(inclusive) If the user enters a year outside the specified range, show an error message: "Invalid input, please enter a year between 1900 and 2100." 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 4 and not divisible by 100 or not divisible by 400.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!