Ian Ozsvald
Member: 97 months
Authored: 181 videos
Description: I am the co-founder of ShowMeDo (see http://showmedo.com/about), author of `The Screencasting Handbook <http://thescreencastinghandbook.com>`_ and the founder of the professional screencast production company `ProCasts <http://procasts.co.uk>`_: .. image:: http://procasts.co.uk/media/procasts_sma ...
Python Beginners - Loops and Iteration [ID:296]
a series of video-tutorials by Ian Ozsvald
Iterating over a block of code is a very common operation when programming. Here I show you the 'for' and 'while' commands in Python, they let you iterate over a sequence of items and repeat blocks of code under a truth condition.
I'll show you how to use the 'for' loop on a list, set and dictionary whilst using iteration, range and enumerate. For the 'while' loop I'll show you an example of getting user-input (with 'raw_input') to build up a list of answers.
At the end of the series you'll have a firm knowledge for using 'for' and 'while' with Python.