Loop

برنامه‌نویسی 2 views

Persian equivalent حلقه

In plain language A loop lets a program repeat the same operation.

Short definition It is a control-flow structure that repeats a block according to a condition or the items of an iterable.

Detailed explanation and example

A for loop can visit the rows of a price list and sum their values. A while loop can continue until the input becomes valid.

Reference