Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove all parentheses from string python

>>> table = str.maketrans(dict.fromkeys("()"))
>>> string1 = '(this) (is) (a) (test)'
>>> string1.translate(table)
'this is a test'
Source by www.reddit.com #
 
PREVIOUS NEXT
Tagged: #remove #parentheses #string #python
ADD COMMENT
Topic
Name
3+9 =