Error in Anti-vowel


#1

Hi Guys,

Please help me with the code. I cant pin down the problem here.


#2

for char in text ? What is text in your code exactly ?
Text is not declared anywhere, it is just a function variable.

If you wanna have value saved in text then you need to call the function with some value in it


#3

Hi. Text is just the parameter of the function which is supposed to be a string input.


#4

Ok, but is it a string input in your code ? I cannot see any function call with some value that would be passed to text parameter.


#5

First I would recommend just doing an if/else statement in a one for loop. Try setting it it to iterate over text
and if char is in your list of vowels append an empty space and else add the char


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.