Files
python/reference/concepts/string_translation.md

454 B

String translation

TODO: ADD MORE

  • the str.translate() instance method is called on an object from the str class (e.g. <my string>.translate()). Returns a copy of the initial string with each character re-mapped through the given translation table. The translation table is typically a mapping or sequence type that implements indexing via the magic method __getitem__(). rna-transcription