Join the fun: http://www.SiliconDojo.com
Support us with at: http://www.donorbox.com/etcg
For Loops
For loops allow you to iterate through a set. So you can step through a list, dictionary, tuple or set to print out or test against each value at an index.
For Loops for Lists, Tuples and Sets.
You can use a for loop to iterate through lists, tuples and sets.
This example steps through a list. It will print out each name in the list on a new line. When we call x we are creating a variable name and assigning a vlue to it of the current value of the index. This variable does not have to be called x, it can be name or any appropriate variable name.