Courses/Functional Extras & Context Managers

๐Ÿช„ Functional Extras & Context Managers

str.translate (ROT13)

Fast character-by-character mapping.

Build a translation table with str.maketrans and apply it with .translate() โ€” useful for ciphers, transliteration, stripping characters.

main.py
Output
Press Run to execute.
Expected output
uryyb
hello

Sign in to track your progress across lessons.