We can list more than one exceptions to be caught one after the other in a single "except" statement.

except (IOError, ZeroDivisionError):

Alternatively we can group exception in separate except statements

except IOError:
    print "  Could not open " + f
except ZeroDivisionError:
    print "  Error zero in " + f