Iteration Flashcards
1
Q
Counter controlled loops
A
For loop - Executes iteration of code for a fixed number of times
2
Q
Range function
A
Special function which generates a list of integers
3
Q
Nested Loops
A
Task which is carried out multiple times while a subtask is carried out within multiple times
4
Q
Condition controlled loops
A
While loop - Executes iteration of code for an undefined number of times
5
Q
Infinite loops
A
A loop where the condition is always true
6
Q
break
A
Exits immediately from a loop
7
Q
Continue
A
Immediately starts next iteration
8
Q
else
A
Execute at the end of loop that ends normally(without break)
9
Q
pass
A
Do nothing
10
Q
Counter Variable
A
A special variable in counter controlled loops that is assigned a different value each iteration