Question: u . tr ? s r s - v 2 CS 1 2 1 ( All Sections ) : PYT PowerPoint Presentation LAB _ 9

u.tr ?srs-v2
CS 121(All Sections): PYT
PowerPoint Presentation
LAB_9.pdf
ownloads/LAB_9.pdf
11
100%
q,
Objectives: program control with if, if-else, if-elif-else structures and LOOPS
q,
Write a program, Lab09_Q1.py, that prompts the user to input a year and determines whether the year is a leap year or not. Leap years are any years that can be evenly divided by 4. A year that is evenly divisible by 100 is a leap year only if it is also evenly divisible by 400.
SAMPLE RUN 1:
Enter a year (yyyy) : 20232023 is not a leap year.
SAMPLE RUN 2:
Enter a year(yyYy) : 2024
2024 is a leap year.
 u.tr ?srs-v2 CS 121(All Sections): PYT PowerPoint Presentation LAB_9.pdf ownloads/LAB_9.pdf 11

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!