How long does repetition continue in loop?
Answers
Answer:
Repetition statements fall into two general categories; while loops and for loops. Although it is possible to write every loop as a while loop (or every loop as a for loop), this is not a good idea. While loops should be used if the number of repetitions is not fixed. In many cases, the number of repetitions that a while loop executes depends on user input. On the other hand, for loops should be used when the number of repetitions is fixed. In many cases, the number of repetitions a for loop executes for is determined by the number of elements in an array or an array-like object (such as a list or a tuple in Python). This is why for loops are often associated with some indexed quantity like a list
Explanation:
I hope it's helpful to you
please mark me brainlist
and thanks me
and follow me