Error in code


#1

What the o error in this code? How make to write erro?

n = ["Michael", "Lieberman"]

Add your function here

def join_strings(words):
result = ""
for i in range(len(words)):
result.append(words[i])
return result

print join_strings(n)


#2

append() is a built in function to append to a list.

to join a string use +


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.