Basic Programming in Python > Lecture 4: Loops > Flashcards
What are loops used for?
Loops are used to run sections of code multiple times
What types of loops are there?
While loops and for loops
What is an ‘iteration’?
Each time a loop runs.
e.g. if there are 6 iterations, the loops is run 6 times.