Using strings in lists in functions


n = ["Michael", "Lieberman"]

Add your function here

def join_strings(words):
result = ""
result = result.append
return result

print join_strings(n)

this is my code could any one help me where my code went wrong?


We cannot append to a string. It has no method, append. We can use concatenation, though...

 x = x + y


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