← Glossary
Glossary · AI and agent workflows
Function
A named block of instructions that takes inputs, called arguments, and hands back a result, called its return value.
A function lets a program be read and checked a piece at a time. Calling installed_price(row) runs that block with the row as its argument, and the value it returns takes the place of the call. A function that raises an exception instead of returning stops at that point and passes the problem outward to whoever called it. The quote comparison has five functions, one for each step of its data path.