we can use those conditions in our Python solution using multiple if-else statements. Let us create a function that will return True if the given year is a leap year, else it will return false.