def zodiac_function(user_month, user_day):
    """ Using conditionals, compares numbers of months and days to determine sign.   
    
        Parameters
        ----------
        user_month : int
            The number of the month user was born in, determines sign. 
        user_day: int 
            The day the user was born on, compared using comparison operators
            to determine sign.     
    
        Returns
        -------
        sign : str
            The determined sign after comparison. """
     
#Leo    
    if user_month == 8 and user_day <= 23:
        sign = "Leo"
        return sign
    elif user_month == 8 and user_day > 23:
        sign = "Virgo"
        return sign
#Virgo
    if user_month == 9 and user_day <= 22:
        sign = "Virgo"
        return sign
    elif user_month == 9 and user_day > 22:
        sign = "Libra"
        return sign
#Libra
    if user_month == 10 and user_day <= 22:
        sign = "Libra"
        return sign
    elif user_month == 10 and user_day > 22:
        sign = "Scorpio"
        return sign
#Scorpio
    if user_month == 11 and user_day <= 23:
        sign = "Scorpio"
        return sign
    elif  user_month == 11 and user_day > 23:
        sign = "Sagittarius"
        return sign
#Sagittarius
    if user_month == 12 and user_day <= 21:
        sign = "Sagittarius"
        return sign
    elif  user_month == 12 and user_day > 21:
        sign = "Capricorn"
        return sign
#Capricorn
    if user_month == 12 and user_day <= 21:
        sign = "Sagittarius"
        return sign
    elif  user_month == 12 and user_day > 21:
        sign = "Capricorn"
        return sign
#Aquarius
    if user_month == 1 and user_day <= 19:
        sign = "Capricorn"
        return sign
    elif  user_month == 1 and user_day > 19:
        sign = "Aquarius"
        return sign
#Pisces
    if user_month == 2 and user_day <= 18:
        sign = "Aquarius"
        return sign
    elif user_month == 2 and user_day > 18:
        sign = "Pisces"
        return sign
#Aries
    if user_month == 3 and user_day <= 20:
        sign = "Pisces"
        return sign
    elif  user_month == 3 and user_day > 20:
        sign = "Aries"
        return sign
#Taurus
    if user_month == 4 and user_day <= 20:
        sign = "Aries"
        return sign
    elif  user_month == 4 and user_day > 20:
        sign = "Taurus"
        return sign
#Gemini
    if user_month == 5 and user_day <= 20:
        sign = "Taurus"
        return sign
    elif  user_month == 5 and user_day > 21:
        sign = "Gemini"
        return sign
#Cancer
    if user_month == 6 and user_day <= 20:
        sign = "Gemini"
        return sign
    elif  user_month == 6 and user_day > 20:
        sign = "Cancer"
        return sign
    elif user_month == 7 and user_day <= 22:
        sign = "Cancer"
        return sign