ELI5: Explain Like I'm 5

Subroutine

A subroutine is like a mini-program within a bigger program. It takes in some information, does something with it, and then gives you an answer. For example, imagine you want to bake a cake. You might make a program to help you bake the cake. Inside the program, there might be a subroutine (or mini-program) to help you mix the ingredients. This mini-program would take the ingredients you have (like flour, eggs, butter, milk, etc.) and mix them together. Then, once it's done mixing, it would give you back a bowl of mixed ingredients. So the subroutine helped you do something (mix the ingredients) and gave you an answer (a bowl of mixed ingredients).