LISTS AND FUNCTIONS-Using strings in lists in functions-16/18(AttributeError)


Having problems with appending contents of list into an empty string.
Help is appreciated, thanks :slight_smile:


here you have used result=result.append(w)
which is wrong as its a string you should have written result=result+w


The expected code is
n = [“Michael”, “Lieberman”]

Add your function here

def join_strings(words):
for x in words:
return result

print join_strings(n)


Thanks it worked :smiley:


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