ELI5: Explain Like I'm 5

Repeat-accumulate code

Repeat-accumulate code is like playing a game. In the game, you have to finish all the levels before you can complete the game. In this type of code, every time you reach a certain "level," you have to do the same thing again. You also have to keep track of what you've done before, or "accumulate," before you can finish the game. So, like in the game, you start on the first level, then do what you need to do there. Then you go to the next level and do the same thing, but you also remember what you did in the first level. After doing this for all the levels, you will have everything you need to make your program complete.