python add char to strng code example
Example 1: how to add char to string python
def addChar(text,char,place):
return text[:place] + char + text[place:]
Example 2: python insert text at beginning of string
m = 1
n = 2
yourstring = ("L" * m) + yourstring + ("L" * n)