Loop

« Back to Glossary Index

A loop repeatedly executes a block of code while a condition holds or for a fixed number of iterations. Loops automate repetitive tasks. Common types include for, while, and do-while loops. Example: Iterating over elements in a list.


← Back

« Back to Glossary Index