Python provides three types of looping techniques:
Loop | Description |
---|---|
for Loop | This is traditionally used when programmers have a piece of code and wanted to repeat that ‘n’ number of times. |
while Loop | The loop gets repeated until the certain Boolean condition is met. |
Nested Loops | Programmers can use one loop inside another; i.e. they can use for loop inside while or vice – versa or for loop inside for loop or while inside while. |
0 Comments
If you have any doubts,please let me know