Question: Create a Python program named cst - 1 5 0 - february - days.py . In the main part of your program:a . Prompt the

Create a Python program named cst-150-february-days.py. In the main part of your program:a. Prompt the user to enter a year and store it in a variable, e.g., year.b. Use conditional statements to determine whether the given year is a leap year based on the provided criteria:If the year is divisible by 100, it is a leap year only if it is also divisible by 400.If the year is not divisible by 100, it is a leap year only if it is divisible by 4.c. Display a message indicating the number of days in February for the given year.Display the result using a print statement.Save and run your program to check the number of days in February for the entered year.Sample Output:Enter a year: XXXXIn XXXX February has 28(or 29) days.Note: Replace XXXX with the actual value.

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 Databases Questions!