one = 0 In [216]: for i in bla: .....: bla [one] = "r'"+i+"$'" .....: one = one + 1