Is there any function in Python that I can use to insert a value in a certain position of a string?

Something like this:

"3655879ACB6" then in position 4 add "-" to become "3655-879ACB6"

8 Answers
8

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *