Skip to content
Tech Dictionary
DictionaryThe dataContribute
Dictionary/Programming
CodeBeginner

Loop

Also known as iteration

Code that repeats while a condition holds or for items in a collection.

Think of it this way

Your computer saying 'one more time' without getting bored.

In the real world

A loop can send a reminder for each overdue task.

One thing to remember

A condition that never changes can cause an infinite loop.

Related

AlgorithmRecursion

Go a little deeper

  • Python language tutorial (opens in a new tab)
  • MDN Glossary (opens in a new tab)
Improve this entry

What do we build for, if not to lessen each other’s hardship?

Tech Dictionary