Question: Mod 1 Lab: Basic Python Coding Question 1 Create a python program that will determine if a given year is a leap year. Using nested

Mod 1 Lab: Basic Python
Coding Question 1
Create a python program that will determine if a given year is a leap year. Using nested if .... else
statements, follow the guideline below to create your leap year program.
A leap year is exactly divisible by 4 except for century years (years ending with
00). The century year is a leap year only if it is perfectly divisible by 400.
Examples: Examples in program:
2017 is not a leap year Input: 2017 Output: False
1900 is not a leap year Input: 1900 Output: False
2012 is a leap year Input: 2012 Output: True
2000 is a leap year Input: 2000 Output: True

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!