def is_tachycardic(age, heart_rate):
    """Determines if a given heart rate indicates tachycardia

    Every time a new heart rate is added to the server, it is
    necessary to ensure that the given heart rate does not
    indicate tachycardia in that given patient. This function
    reads in an age and a heart rate, then runs through a quick
    algorithm to test to see whether or not that given heart rate
    Indicates tachycardia at that specified age. If the patient
    is tachycardic, then the function returns True. Otherwise,
    the function returns False.

    Parameters
    ----------
    age : int
        Gives the age of a patient
    heart_rate : int
        Gives the heart rate of a patient

    Returns
    -------
    bool
        True if tachycardic, False if not
    """
    if 1 <= age <= 2 and heart_rate > 151:
        return True
    elif 3 <= age <= 4 and heart_rate > 137:
        return True
    elif 5 <= age <= 7 and heart_rate > 133:
        return True
    elif 8 <= age <= 11 and heart_rate > 130:
        return True
    elif 12 <= age <= 15 and heart_rate > 119:
        return True
    elif age >= 15 and heart_rate > 100:
        return True
    else:
        return False