Important Notice:

Iterative / Loop Processing

Iterative / Loop Processing

1 views 1 min read

Iterative / Loop Processing (पुनरावृत्त / लूप प्रसंस्करण) :-

Iterative / Loop Processing वह प्रक्रिया है जिसमें किसी कार्य (Task) को एक या अधिक बार तब तक दोहराया जाता है, जब तक कि दी गई शर्त (Condition) सत्य (True) रहती है या निर्धारित संख्या (Specified Number of Times) पूरी नहीं हो जाती।

Python में Loop का उपयोग बार-बार एक ही कार्य को करने के लिए किया जाता है।

English:

Iterative / Loop Processing is the process of repeating a task one or more times until a given condition remains True or a specified number of iterations is completed.

In Python, loops are used to execute the same task repeatedly.

Algorithm (Print Numbers 1 to 5) :-

  1. Start
  2. Initialize i = 1.
  3. Check whether i <= 5.
  4. If True, display i.
  5. Increment i by 1.
  6. Repeat Step 3.
  7. Stop when the condition becomes False.

 

Related Notes