Shape Shape

Yield

Yield is a keyword or function in programming that produces a value and pauses execution. Used in generators and coroutines for efficient iteration.

Example:

Python’s yield generates values one at a time in a loop.

WhatsApp Icon