Loops & Iterators Flashcards
1
Q
Loop
A
The repetitive execution of a piece of code for a given amount of repetitions or a certain condition is met.
2
Q
break
A
break keyword allows us to exit a loop at any point, so any code after a break will not be executed. Note that break will not exit the program, but only exit the loop and execution will continue on from after the loop.