Changes

Jump to navigation Jump to search
193 bytes added ,  09:30, 5 April 2015
Line 112: Line 112:  
=== Loops ===
 
=== Loops ===
 
==== For ====
 
==== For ====
 +
<source lang="python">
 +
NumberList = [1, 3, 7, 12, 24]
 +
for number in NumberList:
 +
    print number
 +
</source>
 +
Another way:
 +
for i in range(0, len(NumberList)-1):
 +
    print NumberList[i]
 +
</source>
 +
 
==== while ====
 
==== while ====
    
=== Functions ===
 
=== Functions ===

Navigation menu