python add element to beginning of string code example Example: python insert text at beginning of string Click to copym = 1 n = 2 yourstring = ("L" * m) + yourstring + ("L" * n)