

Learning to code: why doesn't image-1 work the same as image 2?
This question comes form lesson-20 'strings' on GDquests 'learn to code from zero' for some perhaps useful context
I made an attempt at a question which asked to create a for loop and array of premade attacks to then call the correct animations for, in the correct order.
According to the lesson, my original first "successful" attempt (image 1) fulfills all parameters yet it doesn't play the animations in the output window unlike in image 2, (the intended solution). I am at a complete loss as to why; as far as I am aware, while my answer is perhaps far more unoptimized, it should still lead to the same outcome of playing the correct animation.
It evidently didn't do that however which is what I am asking about.
Hopefully that question makes sense.