Glenn_CostaRica
1. What is looping control flow allowing us to do?
The looping control flow allows us to not continue going below, but return to a given previous instruction in a sequence of instructions, and also allow us to keep repeating the return action until a determined value of values are verified.
2. Describe what âloopsâ do in your own words.
Loops help us repeat one instruction or one given set of instructions again and again until we can continue going down in the flow.
3. What is the difference between while and do-loops?
A while is a kind of loop which takes a boolean condition and keeps repeating the execution of the instructions inside the loop while the condition remains TRUE; as soon as it turns FALSE, the while loop stops. On the other hand, the do loop, which is similar, executes the set of instructions once without verifying the condition; and, it verifies the condition for the first time after the first iteration of the instructions. After that, it keeps repeating if the condition remains TRUE, and it stops when the conditions turns FALSE.
4. What is indentation?
Itâs a rule associated to good practices and asthetics that makes code appealing at a visual level. It has the purpose to make code easy to see and analyze. It makes, for example, nesting very easy to verify. It is only for humans, though. Machines do not need the identation.