Question
Write a function that finds out if a year is a leap year.The function must take the year it is to check as a parameter.The
Write a function that finds out if a year is a leap year.The function must take the year it is to check as a parameter.The function should return a boolean, true if the year is a leap year and false otherwise.Leap year definition from wikipedia: A leap year is normally every four years - all years that are divisible by 4 are leap years, except the hundred years (1700, 1800, 1900 etc.) which are not leap years unless they are divisible by 400 (1600, 2000, 2400etc.).Thus, 2000 was a leap year, while 2100 is not a leap year.
this problem have to be solve in python programming language.
thanks for help me.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started