Need help on Practice makes perfect 8/11


#1

Code:

def greeter(name)
    return ("Greetings #{name}") 
end
def by_three?(n)
    if n%3 == 0
        return "true"
    else
        return "false"
    end
end
greeter("Malman")
by_three?(99)

It then says
It looks like your by_three? method doesn't return false for all numbers not evenly divisible by three.

Don't know what to do please help!


#2

i formatted your code, take a look how i did that.

Anyway, you should return a boolean true and false, not a string. remember booleans?

print true
print false