Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python string cut substring

text = "Hello World!"
x = text.replace("World", "")
print(x)

>>> Hello !
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #python #string #cut #substring
ADD COMMENT
Topic
Name
4+5 =