Python String translate() MethodPython 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. SignatureParameterstable : A translation table. ReturnIt returns a string. Let's see some examples of translate() method to understand it's functionality. Python String translate() Method Example 1Output: Hellp jgvgtppint Next TopicPython Strings |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India