Runtime

Running a Program

Running a program means telling the computer to execute the instructions in your code, one by one, from start to finish.

What Happens When You Run a Program#

When you run a program, the computer reads your source code and starts executing it from the beginning. Each instruction is carried out in order. If the program asks for input, execution pauses until the user responds. If the program produces output, it appears immediately. When the last instruction is done, the program exits.