for char in line:
if char in " ?.!/;:":
line.replace(char,'')
text = input()
sep = '...'
stripped = text.split(sep, 1)[0]
print(stripped)
import re
inputt = input()
# write the characters you want to remove in square brackets
line = re.sub('[ie]', '', inputt)
print(line)
string.replace(old character, new character, count)
a_string = "addbdcd"
a_string = a_string.replace("d", "")
print(a_string)
>>> string = 'This is a string, with words!'
>>> string.split()
['This', 'is', 'a', 'string,', 'with', 'words!']
s = 'This is a sentence with unwanted characters.AAAAAAAA'
print('Strip unwanted characters: {}'.format(s.rstrip('A')))
# Output
# Strip unwanted characters: This is a sentence with unwanted characters.
mystring = "123⋯567"
mystring[ 0 : mystring.index("⋯")]
>> '123'