Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Remove Character from String using translate()

# Python program to remove a character from a string using translate() method
text= '_User_'
print(text.translate({ord('_'):None}))
Source by itsmycode.com #
 
PREVIOUS NEXT
Tagged: #Python #Remove #Character #String
ADD COMMENT
Topic
Name
2+5 =