anti_vowel


#1


https://www.codecademy.com/courses/python-intermediate-en-rCQKw/1/2?curriculum_id=4f89dab3d788890003000096#
File "python", line 1
anti_vowel():
^
SyntaxError: invalid syntax


i was expecting an input stored in the variable p then to start a loop that runs for each character in the same variable and if it finds any of the vowels lower case or upper it should replace the space with empty stored in a new var called j


Replace this line with your code. 
anti_vowel():
    p=input("write something: ")
    for i in p:
        if "a" or "A" or "E" or "e" or "i" or "I" or "o" or "O" or "u" or "U" in p:
            return j=p.replace(["a",""],["A",""],["e",""],["E",""],["i",""],["I",""],["o",""],["O",""],["u",""],["U",""])
            
        else : 
            print ("try again")


#2

remove or and put aeiouAEIOU in one string


#3

anti_vowel():
p=input("write something: ")
for i in p:
if "aeiouAEIOU" in p:
return j=p.replace(["a",""],["A",""],["e",""],["E",""],["i",""],["I",""],["o",""],["O",""],["u",""],["U",""])

    else : 
        print ("try again")

still gives me the same error


#4

try to return j in next line

if that's not working create empty variable, and add i to it
variable = variable +i
and remove return j=... line

put def before anti_vowel(): you need def to define function in python, you don't need input