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'))
Nesta página do site você pode assistir ao vídeo on-line 135. String Translate and Rpartition Method in Python with Example Code || Python String Methods-17 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Bhavatavi 04 Outubro 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 3 vezes e gostou 0 espectadores. Boa visualização!