Iterative Computation and Control Flow :-
Iterative Computation and Control Flow Python में repeated execution (बार-बार निष्पादन) और program के execution flow को control करने से संबंधित है।
Iterative Computation का अर्थ है किसी statement या statements के समूह को किसी condition या sequence के आधार पर बार-बार execute करना। Python में इसके लिए मुख्य रूप से for loop और while loop का उपयोग किया जाता है।
Control Flow का अर्थ है यह निर्धारित करना कि program में statements किस क्रम में execute होंगे। इसके लिए if, for, while, break, continue आदि statements का उपयोग किया जाता है।
Python में loops के अंदर लिखे code को Indentation (रिक्त स्थान) देना आवश्यक होता है। Indentation यह बताता है कि कौन-सा statement loop block के अंदर है। सामान्यतः Python में 4 spaces का indentation प्रयोग किया जाता है।
English
Iterative Computation and Control Flow refers to repeated execution and controlling the flow of execution in a Python program.
Iterative Computation means executing a statement or a group of statements repeatedly based on a condition or a sequence. Python mainly uses the for loop and while loop for iterative computation.
Control Flow refers to determining the order in which statements are executed in a program. Python provides statements such as if, for, while, break, and continue to control the flow of a program.
In Python, the code written inside loops must be given Indentation (spaces). Indentation indicates which statements are part of the loop block. Generally, 4 spaces are used for indentation in Python.