Control flow, as the name suggests, is used to control how your code is run. Control flow tools such as
if-else statements and loops are used to build logic into your code and control the sequence in which your code is executed.
In this section, we will implement logic into our code using
This will enable us to harness the skills we learned in the data types section and use them in more complex and structured ways.