I tried to define a function that removes vowels from a string. An error was detected at line 4 that reads: "TypeError: 'unicode' object does not support item assignment". Could somebody please explain in simple terms what this error is about and how to fix it?
def del_vowel(text):
for i in range(len(text)):
if text[i].lower() in ['a','e','i','o','u']:
text[i] = ""
return text
text = raw_input('> ')
print del_vowel(text)