Types Of Loops In Python (JNNC Technologies)



Python provides three types of looping techniques:
Python Loops
LoopDescription
for LoopThis is traditionally used when programmers have a piece of code and wanted to repeat that ‘n’ number of times.
while LoopThe loop gets repeated until the certain Boolean condition is met.
Nested LoopsProgrammers 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.

Post a Comment

0 Comments

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();