What I am missing ? Using strings in lists in functions


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

print join_strings(n)

.......
join_strings(['x', 'y', 'z', 'a']) returned 'x' instead of 'xyza'


#2

return result is inside your for loop instead of after it. You need to delete the 4 spaces infront of it.