Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to remove a letter from a string python

varible.replace(letter, "") # blank quotes.
# e.g.
s = "Hello World"
print(s.replace('e', ""))
# Hllo World


# great for data cleansing
Source by www.journaldev.com #
 
PREVIOUS NEXT
Tagged: #remove #letter #string #python
ADD COMMENT
Topic
Name
9+6 =