how to append a number as a character to a string in python code example Example: insert character in string python >>> s[:4] + '-' + s[4:] '3558-79ACB6'