how to add each element of string code example
Example 1: add a string to each element of a list python
my_list = ['foo', 'fob', 'faz', 'funk']
string = 'bar'
list2 = list(map(lambda orig_string: orig_string + string, my_list))
Example 2: python insert text at beginning of string
m = 1
n = 2
yourstring = ("L" * m) + yourstring + ("L" * n)