def condition():
    """Thid function provides condtion list, and values"""

    lst_condition = [('first marker line\n',
                      'first marker line\n'),
                     ('this line will be changed\n',
                      'this line is changed like this\n')]
    for testcond, value in lst_condition:
        yield testcond, value
Thid function provides condtion list, and values
recipes/Python/440523_Text_transformer_with_conditions/recipe-440523.py