I wrote this assuming python can iterate through two strings at a time
vowels = "aeiouAEIOU" text = raw_input("?") def anti_vowel(text): for (i,l) in (text,vowels): if text[i] == vowels[l]: text.replace(vowel,"") else: return text return text print anti_vowel(text)
I got this error, what does it mean (the last sentence)?
? abcdef Traceback (most recent call last): File "python", line 12, in <module> File "python", line 6, in anti_vowel ValueError: too many values to unpack