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
 
PREVIOUS NEXT
Tagged: #remove #letter #string #python
ADD COMMENT
Topic
Name
6+2 =