9/2/26Less than 1 minuteAbout 106 words
Concept: for loop
A for loop is executed a predetermined number of times, based on the number of items in a sequence (a list of users, a string, or a range of numbers). A for loop is the best choice when the number of iterations is known in advance. Every loop can be expressed as a while loop, but a for loop is more concise and easier to read.