def find_answer_by_id(id, file_name):
    answer = connection.read_csv_file(file_name)
    for dic in answer:
        if id in dic['id']:
            return dic
def get_all_answer():
    try:
        return connection.read_csv_file(ANSWER_FILE)
    except FileNotFoundError:
        print("except")
        return []
def get_answer_by_id(id, file_name):
    answer = connection.read_csv_file(file_name)
    for dict in answer:
        if id == dict['id']:
            return dict
def get_all_question():
    try:
        return connection.read_csv_file(QUESTION_FILE)
    except FileNotFoundError:
        print("except")
        return []
def get_questions_by_id(id, file_name):
    question = connection.read_csv_file(file_name)
    for dictionary in question:
        if id == dictionary['id']:
            return dictionary