Please advise if the following code works. Mine seems not working at all
string = str(input('Enter something to change'))
replacing_words = 'aeiou'
for i in replacing_words:
s = string.replace('replacing_words', ' ')
print(s)
My intension here is to replace all vowels in the string with a space. If this is a wrong code, could someone assist with right codes and explanation, why it didn't work?
Thank you