Loops: for-in and while


  • for in - to iterate over a well defined list of values. (characters, range of numbers, shopping list, etc.)
  • while - repeat an action till some condition is met. (or stopped being met)