Why is my code not working what am-I missing?

MySentence = input(“Quick you have unlimited time to give me a sentence!”)

def anti_vowel(c):
newstr = “”
vowels = (‘a’, ‘e’, ‘i’, ‘o’, ‘u’)
for x in c.lower():
if x in vowels:
newstr = c.replace(x, “”)
return newstr

Hello @krystalmunindatchetm, welcome to the forums! What about your code isn’t working? You aren’t calling the function, so that’d be why there’s no output, if that’s your problem.

Aside, can you please format your code according to this guide

1 Like