Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to append substring to string in specific position in python

>>> hash = "355879ACB6"
>>> hash = hash[:4] + '-' + hash[4:]
>>> print(hash)
3558-79ACB6
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #append #substring #string #specific #position #python
ADD COMMENT
Topic
Name
4+4 =