codeletter/codeletter/utils.py
def convert_day(day, year):
    """
    Takes day and year as input, and returns date and month in that year.

    :param day: day of the month
    :type day: int
    :param year: a calendar year
    :type year: int
    :return: pair of month and date
    :rtype: pair(int,int)
    """
    month_days = [
        31,
        29 if is_leap(year) else 28,
        31,
        30,
        31,
        30,
        31,
        31,
        30,
        31,
        30,
        31,
    ]
    m = 0
    d = 0
    while day > 0:
        d = day
        day -= month_days[m]
        m += 1
    return (m, d)

    Takes day and year as input, and returns date and month in that year.

    :param day: day of the month
    :type day: int
    :param year: a calendar year
    :type year: int
    :return: pair of month and date
    :rtype: pair(int,int)
    
Takes day and year as input, and returns date and month in that year.
Takes day and year as input and returns date and month in that year .
def convert_day(day, year):
    month_days = [
        31,
        29 if is_leap(year) else 28,
        31,
        30,
        31,
        30,
        31,
        31,
        30,
        31,
        30,
        31,
    ]
    m = 0
    d = 0
    while day > 0:
        d = day
        day -= month_days[m]
        m += 1
    return (m, d)
def convert_day ( day , year ) : month_days = [ 31 , 29 if is_leap ( year ) else 28 , 31 , 30 , 31 , 30 , 31 , 31 , 30 , 31 , 30 , 31 , ] m = 0 d = 0 while day > 0 : d = day day -= month_days [ m ] m += 1 return ( m , d )
Takes day and year as input, and returns date and month in that year.
Takes day and year as input and returns date and month in that year .
"""
    Takes day and year as input, and returns date and month in that year.

    :param day: day of the month
    :type day: int
    :param year: a calendar year
    :type year: int
    :return: pair of month and date
    :rtype: pair(int,int)
    """
pair of month and date
pair of month and date
pair(int,int)
day
day of the month
day of the month
year
a calendar year
a calendar year