Question: Number of Days in Month Application (IN PYTHON CODE) Create the Number of Days in Month Application. The application will display the number of days
Number of Days in Month Application (IN PYTHON CODE)
Create the Number of Days in Month Application. The application will display the number of days in a given month and also indicate if an entered year is a leap year or not.
Generally, if a year is (evenly) divisible by 4, then it is a leap year. However, there are a couple of exceptions. If the year is divisible by 4 but is also divisible by 100, then it is not a leap yearunless, it is also divisible by 400, then it is. For example, 1996 and 2000 were leap years, but 1900 was not.
Whenever your program accepts user input, you will need to make sure that the user-supplied values are valid before they are used in the computations. For example, a user should not be allowed to enter negative values for months or years. The application should keep asking the user for new values until it receives valid input. Hint: You will need to use Loops.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
