Pratice makes prefect


#1



I'm stuck on the practice makes prefect excise


I get this error messege
"Oops, try again. Did you define your by_three? method? " Any Ideas? Code is below.


 greeter(name)
    return "hello #{name}"
end
greeter("Rachel")
def by_three(n)
    return n % 3 == 0
end
greeter("Rachel")
by_three(10)


#2

Changed the parameter to number now as but still doesn't work my code is below

def greeter(name)
return "hello #{name}"
end
greeter("Rachel")

def by_three(number)
return number % 3 == 0
end
greeter("Rachel")
by_three(10)


#3

dont worry fixed it now relelised i was suposoe to call the the methond by_three? not by_three


#4

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