Changes

Jump to navigation Jump to search
163 bytes added ,  09:27, 5 April 2015
Line 101: Line 101:     
==== try/except/finally ====
 
==== try/except/finally ====
 +
try:
 +
    file = open("test.txt")
 +
except:
 +
    print "Could not open file"
 +
finally:
 +
    print "This part will be executed at the end whether the open fails or not"
 +
 
=== Loops ===
 
=== Loops ===
 
==== For ====
 
==== For ====

Navigation menu