Basics of coding [advanced version]

We have already seen the different types of data and structures that we can use to organize ourselves and make a much more efficient code. However, we have not seen yet how to automate repetitive tasks or how to modify the behaviour or our code depending on certain conditions. That is what we will do in this section.

Again, we have divided the section into a more basic and a more advanced one, based on the simplicity of each statement and the amount of times we typically use them in our calculators. In the basic section we will see how to automate certain repetitive tasks, how to react to conditions and variable values to implement different behaviours, and finally we will see a less common but equally useful why to combine them.

For the advanced section we will talk about special version of those behaviours that might save you time and make your life easier if very concrete scenarios.