Answers for "delete multiply char in string python"

2

drop all characters after a character in python

sep = '...'
stripped = text.split(sep, 1)[0]
Posted by: Guest on February-23-2021
1

python remove multiple characters from string

import re
print(re.sub("e|l", "", "Hello people"))
"Ho pop"
Posted by: Guest on December-01-2020

Python Answers by Framework

Browse Popular Code Answers by Language