def handle_response(df, index, comments):
    """
    The handle_response method labels a comment based on user feedback.
    :param df: master DataFrame
    :param index: index of current comment
    :param comments: master comments.json file
    :return: True if comment was labeled successfully; false otherwise
    """
    response = str(input('Please rate the comment: '))      # prompt user for score

    while not response.isnumeric() or (int(response) < 1 or int(response) > 4):     # invalid comment score
        response = str(input('Please rate the comment: '))

    response = int(response)
    df.at[index, 'label'] = response        # update DataFrame and .json file
    comments[index]['label'] = response
    return df.iloc[index]['comment'] == comments[index]['comment']      # check to make sure the comments were changed