def get_color_indexes(msg_list):
    """
    Return index of lines with {correct} (green) and {student} (red).
    """
    indexes = {}
    for i, line in enumerate(msg_list):
        if "{correct}" in line:
            indexes["green"] = i - 1
        elif "{student}" in line:
            indexes["red"] = i - 1

    return indexes