codeletter/codeletter/utils.py
def is_leap(year):
    """
    Takes year as input, and returns if its leap year or not.

    :param year: a calendar year
    :type year: int
    :return: true or false
    :rtype: boolean
    """
    if year % 4 != 0:
        return False
    elif year % 100 != 0:
        return True
    elif year % 400 != 0:
        return False
    else:
        return True

    Takes year as input, and returns if its leap year or not.

    :param year: a calendar year
    :type year: int
    :return: true or false
    :rtype: boolean
    
Takes year as input, and returns if its leap year or not.
Takes year as input and returns if its leap year or not .
def is_leap(year):
    if year % 4 != 0:
        return False
    elif year % 100 != 0:
        return True
    elif year % 400 != 0:
        return False
    else:
        return True
def is_leap ( year ) : if year % 4 != 0 : return False elif year % 100 != 0 : return True elif year % 400 != 0 : return False else : return True
Takes year as input, and returns if its leap year or not.
Takes year as input and returns if its leap year or not .
"""
    Takes year as input, and returns if its leap year or not.

    :param year: a calendar year
    :type year: int
    :return: true or false
    :rtype: boolean
    """
true or false
true or false
boolean
year
a calendar year
a calendar year