Using strings in lists in functions


#1




i got this error
Oops, try again. join_strings(['x', 'y', 'z', 'a']) returned '' instead of 'xyza'


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


print join_strings(n)


#2

.append() is a built in function to append items to a list. to join strings, use +


#3

i dont get it .. maybe example please


#4

okay:

hello = "hello"
world = "world"
hello_world = hello + world
print hello_world

#5

ok it is work . many thanks


#6