I can't understand the error nor can I figure out the mistake in my code. If you have coded it correctly, please let me know the code. Thanks.
Error given is-
"Traceback (most recent call last):
File "python", line 10, in
File "python", line 6, in join_strings
AttributeError: 'str' object has no attribute 'append' "
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)