DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+4 =
Submit