Unit 9 · Lesson 1
Build the idea
Start with the concept and its key vocabulary.
A procedure groups instructions for one clear task. ERL starts it with procedure and ends it with endprocedure. Python uses def for both procedures and functions. Defining a procedure stores its instructions, but those instructions do not run until the procedure is called. Calls let the same code be reused without copying it.
A named, reusable block of code that performs a specific task.
Another name for a sub-program, such as a procedure or function.
A sub-program that performs a task without returning a value.
An instruction that runs a named sub-program.