Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Remove Punctuation from a String

import string
 
test_str = 'Gfg, is best: for ! Geeks ;'
 
test_str = test_str.translate
    (str.maketrans('', '', string.punctuation))
print(test_str)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #Remove #Punctuation #String
ADD COMMENT
Topic
Name
8+8 =