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
In questa pagina del sito puoi guardare il video online Python String translate della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Jakubication 23 settembre 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 116 volte e gli è piaciuto 2 spettatori. Buona visione!