8/19 error "prints to console, use return"


#1

def by_three?(n)
return n % 3 == 0
end

def greeter(name)
return "Hello " + name
end

output = greeter("bill")
puts output
threed = by_three?(4)
puts threed

console:
Hello, bill
false

i did it right but its saying i need to use return instead of printing it to the console.


#2

Well, did you try returning and not printing? What does it say then?


#3

Yep, I would recommend doing as @arjofocolovi suggests


#4

i want printing, i fixed it anyway


#5

Great, please provide your fix so that other people with the same problem as you can know about it.


#6

Yes I've same problem with this exercise. how did you do ??


#9

change return in the greeter method for puts


#10

Bingo. forgot about it at first, but yeah, thats it, i remember now.