Result = result + words[i] V.S. result = words[i] + result


#1

<Below this line, add a link to the exact exercise that you are stuck at.>
Using strings in lists in functions
<In what way does your code behave incorrectly? Include ALL error messages.>
Oops, try again. join_strings([‘x’, ‘y’, ‘z’, ‘a’]) returned ‘azyx’ instead of ‘xyza’
<What do you expect to happen instead?>
Could someone tell me what is difference between each other. Because I think they are the same…

```python

def join_strings(words):
result = “”
for i in range(len(words)):
result = result + words[i]
return result

def join_strings(words):
result = “”
for i in range(len(words)):
result = words[i] + result
return result

<do not remove the three backticks above>

#2

The first add string(word[i]) to result (the end of result) ,
unlike the second who add result to the end of string


#3

Ah, I get it. Thanks:D