its better to hard code and remove input() when posting on the forums such as
string = 'The quick brown fox jumps over the lazy dog. ' characters = 'aeiou' stripped_str = string.strip(characters) print(stripped_str)one way is to use list comprehension to bring a for loop into one line
print(''.join([c for c in string if c not in characters]))
Output:Th qck brwn fx jmps vr th lzy dg.
Recommended Tutorials: