I want to remove all punctuation marks from a text file using .translate() method. It seems to work well under Python 2.x but under Python 3.4 it doesn\'t seem to do anythin
In python3.x ,it can be done using :
import string #make translator object translator=str.maketrans('','',string.punctuation) string_name=string_name.translate(translator)