20
A 'For Loop' is used to repeat an action for every item in a list. Imagine you have a bag of 10 oranges. A loop says: "For every orange in this bag, wash it."
Instead of writing 'wash' ten times, you write it once inside the loop. It saves you time and prevents mistakes. Efficiency is the mark of a good programmer.
Log in to add a comment.