Tag Archives: For loop

Java For Loop

Loops are used to execute the set of code or instructions over a number of times when the condition is true. Java supports three types of loops- For While do-while Loop comparison Comparison for loop while loop do-while loop Introduction This control statement will iterate a part of the programs multiple times. This control flow statement will execute… Read More »

Python For Loop

In this tutorial, we are going to discuss the how can we use for loop to iterate over a sequence of elements. so let’s discuss Python for loop. What is for loop? A for loop is an iterator which is used to iterate over a sequence of elements. The sequence of elements could be anything a string or… Read More »