def color(priority, text):
    """
    Colors the text according to the priority of the task

    :param priority: priority of task
    :param text: string, that needs to be colored
    :return: colored text
    """
    if priority == 1:  # красный
        return f'\033[31m{text}\033[0m'
    elif priority == 2:  # желтый
        return f'\033[33m{text}\033[0m'
    elif priority == 3:  # синий
        return f'\033[34m{text}\033[0m'