Not seeing the light on this one: 17 Methods with Arguments


I’m not getting this one at all.

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<In what way does your code behave incorrectly? Include ALL error messages.>
wrong number of arguments (given 0, expected 1)


def welcome(name)
return "Hello, #{name}"

<do not remove the three backticks above>


Remove your puts statement and replace it with return "Hello, #{name}"

Is your question more relating to the string interpolation?


I guess I was expecting something to happen. :grinning:

It looks right, so I’m moving on.

Thanks for the reply.


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