Loops in python explained with simple example
Python provides mainly two looping constructs which allows programmer to execute a section of code to repeat multiple number of times.
The while loop provides a way for programmers to code general loops whereas the for loop provides the option to code using items in a sequence or other iterable objects.
(more…)