What is the purpose of a loop in programming?

What is the purpose of a loop in programming?

پروگرامنگ میں لوپ کا مقصد کیا ہے؟
Explanation
A loop in programming allows a set of instructions to be executed repeatedly until a condition is met.
It helps reduce code repetition and makes programs more efficient.