AI GLOSSARY

Functions and Control Flow

Small, clear functions are easier to test than one large notebook cell.

Simple explanation

Functions give repeated logic a name and a contract. They make preprocessing, validation, model calls, and evaluation steps easier to test and reuse.

Technical explanation

Functions give repeated logic a name and a contract. They make preprocessing, validation, model calls, and evaluation steps easier to test and reuse.

Example

Trace how Input becomes Output through reusable function.

Related lesson

Functions and Control Flow: visual lesson →

Browse all glossary terms →