So, for this exercise you are supposed to combine strings, and I get that. However, the method used in the for function works only for one case. I used:
for word in words: result.append(word)
and then return result. However, this version is not working, but I see most people using this one instead, and it works.
for i in range(len(words)): result = result + i
and then return result. What is the difference between the two, and why is it that only the second one works? Thanks in advance