Using strings in lists in functions


#1

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?


#2

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

 x = x + y

#4

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