135. String Translate and Rpartition Method in Python with Example Code || Python String Methods-17

Publicado el: 04 octubre 2022
en el canal de: Bhavatavi
3
0

Maketrans method:    • 134. String Maketrans and Partition Method...  

Code:
firstString='abc'
secondString='ghi'
thirdString='ab'
string='abcdef'
print(string)
translation=string.maketrans(firstString,secondString,thirdString)
print(string.translate(translation))

translation={97:None,98:None,99:105}
string='abcdef'
print(string.translate(translation))
#rpartition

string='Python is fun'
print(string.rpartition('is '))

print(string.rpartition('not '))

string="Python is fun, isn't it"
print(string.rpartition('is'))


En esta página del sitio puede ver el video en línea 135. String Translate and Rpartition Method in Python with Example Code || Python String Methods-17 de Duración hora minuto segunda en buena calidad , que subió el usuario Bhavatavi 04 octubre 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 3 veces y le gustó 0 a los espectadores. Disfruta viendo!