16. List and functions - strings


#1



https://www.codecademy.com/courses/python-beginner-nzzVa/3/5?curriculum_id=4f89dab3d788890003000096#


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):
    result=""
    for i in words: 
        result =+words.append(i)
    return result


print join_strings(n)


#2

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.


#8