Changes

Jump to navigation Jump to search
192 bytes added ,  09:25, 5 April 2015
Line 90: Line 90:     
=== Conditional ===
 
=== Conditional ===
==== if/then/else ====
+
==== if/elif/else ====
 +
<source lang="python">
 +
if a < 10:
 +
    print "Less than 10"
 +
elif a >= 10 and a < 20:
 +
    print "a greater or equal to 10 and less than 20"
 +
else:
 +
    print "a greater or equal to 20"
 +
</source>
 +
 
 
==== try/except/finally ====
 
==== try/except/finally ====
 
=== Loops ===
 
=== Loops ===

Navigation menu