Iteration/LoopsWhile loop
A while loop can be used to repeat code until a certain condition has been met. We cannot tell how many times the code will run before we use the programme. While loops can use a boolean expression to repeat until a condition has been met. For loop Unlike a while loop we can determine how many times we will use the code before we actually run the programme. A for loop is usually a simpler way of implementing a loop but it is not always suitable. |
FunctionsBasic functions
Functions are powerful, they allow us to recycle our code and split our programme into more manageable chunks |