finally
finally runs cleanup whether an error happened or not. Close a file, release a lock, reset a flag. try: risky. except: handle. finally: cleanup. For files, with open(...) as f: often replaces manual finally. still learn finally for custom cleanup.
Almost always runs (rare interpreter-exit edges). Viva: finally vs with — with is nicer for files; finally is the general cleanup keyword.
Output — Cannot divide then finally always. finally still runs after except.
finally vs with-statement for files.