Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to remove some characters from a string in python

import re

inputt = input()
# write the  characters you want to remove in square brackets
line = re.sub('[ie]', '', inputt)
print(line)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #characters #string #python
ADD COMMENT
Topic
Name
4+1 =