Posted in Web How to remove punctuation marks from a string in Python 3.x using … August 6, 2025 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 anything. https://stackoverflow.com/questions/34293875/how-to-remove-punctuation-marks-from-a-string-in-python-3-x-using-translate