Horje
Python Remove Character from String using translate() Code Example
[Solved] - Python Remove Character from String using translate() Code Example
Try following codes
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}))
Date: 2022-05-21 05:02:10
Category: python
More for You