Hello, I'm doing "Lists and functions" more specifically 16. Using strings in lists and functions and I was able to do the exercise but I have a question in the method (I want to do it in another way).
n = ["Michael", "Lieberman"] # Add your function here def join_strings(words): result = "" for item in words: result += item return result print join_strings(n)
This is what I have and it works. But instead of this:
result += item
I want something like:
since this was taught in previous lessons. But it doesn't work. What's the correct way of doing it with this method?