how to add element in middle of string python code example Example: add to middle of string python >>> s[:4] + '-' + s[4:] '3558-79ACB6'