Doubt in appending string


why does result.append(a) doesnt work?It works with lists and string is similar as list

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

print join_strings(n)


Have a read
== discussions / opinions ==


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