Python String translate() MethodLast Updated : 2 Jan 2026 Python translate() method a string in which each character has been mapped through the given translation table. We can use maketrans() method to create a translation map from character-to-character mappings in different formats. Syntax of the Python String translate() MethodIt has the following syntax: Parameters
ReturnIt returns a string. Python String translate() Method ExampleLet's take an example to demonstrate the translate() method to understand it's functionality. Output: Hellp jgvgtppint Next TopicPython Strings |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India