Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python replace in string

s = 'Some String test'
print(s.replace(' ', '-'))

# Output
# Some-String-test
Source by datagy.io #
 
PREVIOUS NEXT
Tagged: #python #replace #string
ADD COMMENT
Topic
Name
4+1 =