I know I am obviously missing something, and I feel so stupid for asking, but for some stupid reason I can't get my loops to actually loop!!!
My code is below (I stopped coding for about 3 months a while ago and have started up again, so I have forgotten a lot of shortcuts, can you help me with my code?)
blank = ""
for char in text:
if char == "a" or "e" or "i" or "o" or "u" or "A" or "E" or "I" or "O" or "U":
return blank + char
I get this error:
Oops, try again. Your function fails on anti_vowel("Hey look Words!"). It returns "" when it should return "Hy lk Wrds!".
I would love to get an answer, it would be greatly appreciated.
And also, should I go back and review other lessons? I don't want to but I find myself constantly looking on the forums and being frustrated by not being able to figure out the code by myself, I feel so stupid some times...