n = ["Michael", "Lieberman"]
result = ""
for item in words:
result = result + item
I used this code for this exercise and it works fine by printing "MichaelLieberman".
But if you change the result variable to this:
result = item + result
It prints out : "LiebermanMichael" (the thing is this usually shouldn't happen)
Why is this the case? Can anyone explain? Help is very much appreciated.