my_list=[\'apple\', \'oranges\' , \'peaches\'] string= \' \\apples\\ \\cherries\\ \\bananas\\ \\peaches\\ \\avocado\\ \\oranges\\ \' for x in my_list: replace=re.su