Programming Constructs
------------------------------------------------------------------------------------------------------------------------------------------------
For Loops
For loops are a fundamental programming construct used to execute a block of code repeatedly. They are particularly useful when you need to process a sequence of items, like elements in a list or characters in a string.
Example:
------------------------------------------------------------------------------------------------------------------------------------------------
While Loops
While loops are another common programming construct for repeated execution of code blocks. They differ from for loops in how they determine how many times to run.
Example:
In this example, a while loop is being used to create 10 files, all numbered, counting down from 10 until the value of 0 is reaching - meaning that 10 files are created.
------------------------------------------------------------------------------------------------------------------------------------------------