10 Python Loops
Loops are useful to iterate on objects (list,tuple,dictionary) and fetch the elements present inside them.
They are also used for generating specified sequences.
Loops are implemented in code to avoide code repetition.
There are two types of loop present in python.
While Loop (while)
For Loop (for)
Lets learn them one by one …