Python String translate

Veröffentlicht am: 23 September 2024
auf dem Kanal: Jakubication
116
2

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


Auf dieser Seite können Sie das Online-Video Python String translate mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Jakubication 23 September 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 116 Mal angesehen und es wurde von 2 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!