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

Publié le: 03 octobre 2022
sur la chaîne: 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('#'))


Sur cette page du site, vous pouvez voir la vidéo en ligne 133. String Lstrip and Rstrip Method in Python with Example Code || Python String Methods-15 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Ram Case 03 octobre 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 11 fois et il a aimé 0 téléspectateurs. Bon visionnage!