Main

Python Loops

Main.PythonLoops History

Hide minor edits - Show changes to output

Added lines 1-28:
(:title Python Loops:)
(:keywords while, for, conditional, Python, iPython, notebook, university, learn:)
(:description Introduction to loops and flow control in Python:)

Loops are a compact way to repeat certain instructions until a specific condition is met or for a specified number of times. The following tutorial is an introduction to loops in Python including '''for''' and '''while''' loops.

(:html:)
<iframe width="560" height="315" src="https://www.youtube.com/embed/W0EPjfz_WVU" frameborder="0" allowfullscreen></iframe>
(:htmlend:)
 
----

(:html:)
 <div id="disqus_thread"></div>
    <script type="text/javascript">
        /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
        var disqus_shortname = 'apmonitor'; // required: replace example with your forum shortname

        /* * * DON'T EDIT BELOW THIS LINE * * */
        (function() {
            var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
            dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
            (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
        })();
    </script>
    <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
    <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
(:htmlend:)