16. List and functions - strings



Traceback (most recent call last):
File "python", line 10, in
File "python", line 6, in join_strings
TypeError: bad operand type for unary +: 'NoneType'

Not sure why it isn't working?

n = ["Michael", "Lieberman"]
# Add your function here
def join_strings(words):
    for i in words: 
        result =+words.append(i)
    return result

print join_strings(n)


Even though in the instructions they ask you to append, they mean to 'add' them without append()ing or using +=. That's why they didn't highlight append in the instructions.