Python's string translate method converts chosen original characters in a string to different characters. Translate requires a translation table passed to it as input, this video covers using maketrans to achieve this functionality. This video covers using translate and maketrans in tandem to convert "translator" to "twanswatow". This video goes through different ways to do this by passing in 1, 2, and even 3 arguments to maketrans.
Previous Method To Learn (title) 👉 • Python String Title
Next Method To Learn (upper) 👉 • Python String Upper
Check out this playlist with more String Methods To Learn 👉 • String Methods In Python
Sections
0:00 - Intro
0:27 - translate 1 arg Example
1:04 - translate 2 arg Example
1:42 - translate 3 arg Example
2:20 - Outro
#python #learntocode #codingtutorial
En esta página del sitio puede ver el video en línea Python String translate de Duración hora minuto segunda en buena calidad , que subió el usuario Jakubication 23 septiembre 2024, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 116 veces y le gustó 2 a los espectadores. Disfruta viendo!