Lecture 4: Loops Flashcards
1
Q
What are loops used for?
A
Loops are used to run sections of code multiple times
2
Q
What types of loops are there?
A
While loops and for loops
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.