This block will repeat the code that's contained inside of it for the number of times specified. In this case, 10 times.
This block will keep repeating the code that's contained inside of it until the condition is met. In this case, until the sprite touches the edge of the screen.