Lists in functions: 7/18 still does not work


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!


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)


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