Lists in functions: 7/18 still does not work


#1

Hi all,

trying this one and many more versions, but can't resolve it. Any help?

n = "Hello"

Your function here!

def string_function(s):
s = n+ "world"
return s

print string_function(n)

Thanks in advance!


#2

That's cause you cannot use the variable n within the function. Try this instead:

def string_functions(s):
    return s + "world"
print string_functions(n)

#3

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