Iteration Flashcards

1
Q

Counter controlled loops

A

For loop - Executes iteration of code for a fixed number of times

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

Range function

A

Special function which generates a list of integers

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

Nested Loops

A

Task which is carried out multiple times while a subtask is carried out within multiple times

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

Condition controlled loops

A

While loop - Executes iteration of code for an undefined number of times

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

Infinite loops

A

A loop where the condition is always true

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

break

A

Exits immediately from a loop

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

Continue

A

Immediately starts next iteration

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

else

A

Execute at the end of loop that ends normally(without break)

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

pass

A

Do nothing

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

Counter Variable

A

A special variable in counter controlled loops that is assigned a different value each iteration

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