def is_tachycardic(heart_rate, patient_age):  # test
    """Checks to see if heart rate is tachycardic considering age

    Args:
        heart_rate (int): heart rate of specified patient
        patient_age (int): age of specified patient

    Returns:
        str: tachycardic or not tachycardic
    """
    if 1 <= patient_age <= 2:
        threshold = 151
    elif 3 <= patient_age <= 4:
        threshold = 137
    elif 5 <= patient_age <= 7:
        threshold = 133
    elif 8 <= patient_age <= 11:
        threshold = 130
    elif 12 <= patient_age <= 15:
        threshold = 119
    else:
        threshold = 100
    if heart_rate > threshold:
        return "tachycardic"
    else:
        return "not tachycardic"