Question: Write a Python program, which reads in a year (i.e., an integer 1582), and if the year is a leap year prints Is a leap
Write a Python program, which reads in a year (i.e., an integer 1582), and if the year is a leap year prints Is a leap year, otherwise prints Is not a leap year. In your module you should include a function with the signature def is_leap_year(year) that returns true if it is a leap year otherwise it returns false. You should avoid doing any input or output in this function, instead do the input and output as part of the main function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
