133. String Lstrip and Rstrip Method in Python with Example Code || Python String Methods-15

Publicado el: 03 octubre 2022
en el canal de: Ram Case
11
0

Code:
random_string=' this is good.'
print(random_string.lstrip())
print(random_string.lstrip('sti'))

print(random_string.lstrip('s ti'))

website='https://www.wikipedia.com/'
print(website.lstrip('htps:/.'))

s1=' I love Python Tutorial '
print(s1.lstrip())
s2='###HelloWorld###'
print(s2.lstrip('#'))
#rstrip

random_string='this is good '
print(random_string.rstrip())

print(random_string.rstrip('si oo'))

print(random_string.rstrip('sid oo'))

website='www.wikipedia.com/'
print(website.rstrip('m/.'))

s1=' I Love Python Tutorials '
print(s1.rstrip())

s2='###HelloWorld###'
print(s2.rstrip('#'))


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