ELI5: Explain Like I'm 5

Main loop

A main loop is like a plan or list of instructions that a computer uses to decide what to do next. Think of it like a check list. The computer first looks at the first item on the list, then it follows the instructions associated with that item. After it completes an instruction, it goes back to the list, and checks off the item that it just finished. Then, it looks at the next item and follows its instructions as well. If there are no more items on the list, the computer starts all over again from the beginning. This continuous cycle is called a main loop.