Create a function that concatenates strings.
- Define a function called join_strings accepts an argument called words. It will be a list.
- Inside the function, create a variable called result and set it to "", an empty string.
- Iterate through the words list and append each word to result.
- Finally, return the result.
Don't add spaces between the joined strings!
n = ["Michael", "Lieberman"]
--->result = ""
--->for item in words:
I get this error:
Traceback (most recent call last):
->File "python", line 10, in
->File "python", line 6, in join_strings
AttributeError: 'str' object has no attribute 'append'