Lecture 4: Loops Flashcards

1
Q

What are loops used for?

A

Loops are used to run sections of code multiple times

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

What types of loops are there?

A

While loops and for loops

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

What is an ‘iteration’?

A

Each time a loop runs.

e.g. if there are 6 iterations, the loops is run 6 times.

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