#16 - MemoryError?


#1

That's the error:

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

And that is my code:

n = ["Michael", "Lieberman"]

Add your function here

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

print join_strings(n)


#2

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.


#3

I did the:

" result += i "

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

Thanks bro =)