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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly