For homework, I have to design a program that accepts a string as user input. Users must also input some characters (more than one) that want to remove from the orinal string:
user input = The quick brown fox jumps over the lazy dog. characters to strip = a,e,i,o,u
result = Th qck brwn fx jmps vr th lzy dg.
I would appreciate any help. Please keep the code simple. This exercise is about string handling. I have covered loops and strings. NO lists nor lists comprehensions nor Dictionaries nor functions. I would appreciate if you could keep your code related to the topics I have covered.
Thank you
string = input('Please type something: ')
characters = input('What characters would you like to strip: ')
for char in string:
for j in characters:
new_string = string.replace(char, '')
print(new_string)