16/18 help me//


#1

Iterate through the words list and append each word to result. ------> I don't exactly know.. plz help me understand....
I think I am always stucked in this part...
n = ["Michael", "Lieberman"]

Add your function here

def join_strings(words):
result =""
words = words.result
return result

print join_strings(n)


#2

@yoojinhwa Here try and see if you can understand this

def join_strings(words):
    # the final string initially empty
    result = ""
    
    #go through the list for each word
    for each_word in words:
        
        #keep adding each word to the result each time
        result +=each_word
        
    #return the final string
    return result
    
n = ["Michael", "Lieberman"]
print join_strings(n)

You can also test it here
Click to go to labs