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
На этой странице сайта вы можете посмотреть видео онлайн Python String translate длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Jakubication 23 Сентябрь 2024, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 116 раз и оно понравилось 2 зрителям. Приятного просмотра!