--Originally published at 101 For Tec
Loops are very used in daily life, and I´m not talking about food, i´m talking about programming. But you may ask what is a loop. A loop according to the Merriam Webster is “a series of instructions (as for a computer) that is repeated until a terminating condition is reached”.
Loops depend of a condition, this is a boolean, a boolean is a value that can be either false or true, for more information of Basic Operators, you can go here
In python we have two types of loops and one conditional:
- If else
- For
- While
Now…what is the structure of a loop? It is the following
And…what about the ‘if/else’ conditional? Is this
In the following posts Rodrigo Merino and I will explain you more about this
References:
http://www.merriam-webster.com/dictionary/loop
http://www.tutorialspoint.com/computer_programming/computer_programming_loops.htm
https://www.tutorialspoint.com/python3/python_decision_making.htm