#16 - MemoryError?


That's the error:

"Traceback (most recent call last):
File "python", line 9, in
File "python", line 6, in join_strings

And that is my code:

n = ["Michael", "Lieberman"]

Add your function here

def join_strings(words):
result = ""
for i in words:
return result

print join_strings(n)


I think your mistake is in how to do this step in the instructions:

append each word to result.

You're using: words.append(result) but you should look back at how the append() function works. Specifically, what does it expect as input? How can you combine strings together? Answering these questions will set you on the right course.


I did the:

" result += i "

and it works, just need to review the concept of .append() and try this exercise again

Thanks bro =)