def is_comment(string, delimiter):
    """
    Helper method to determine if something is a comment or not
    :param string: the string being checked to see if it's a comment
    :param delimiter: a string for what you what to check to see if it comes
                    before or after the '!'
    :return: a boolean indicating if it is a comment
    """
    testing_index = string.find('!')
    green_light_index = string.find(delimiter)
    if testing_index == -1 or green_light_index < testing_index:
        comment = False
    else:
        comment = True
    return comment