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
|
JavaTpoint offers too many high quality services. Mail us on [email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected]
Duration: 1 week to 2 week