sscasc@tumkur the try finally statement try statement may include an optional finally block code within finally block always executes whether the try block raises an exception or not finally block usually contains "clean-up codethat must execute due to activity initiated in the try block the syntax is as followstry#run this action first exceptrun if exception occurs finally #always run this code the order of the statement should betry -except -else -finally exampleto demonstrate finally def main()trynum int(input("enter the number ")re /num exceptprint ("something is wrong"elseprint ("result is ",refinally print ("finally program ends"main(output enter the number result is finally program ends multithreaded programming computer programs are purely executablebinary (or otherwise)which reside on disk they do not take on life of their own until loaded into memory and invoked by the operating system process (sometimes called heavyweight processis program in execution each process has its own address spacememorya data stackand other auxiliary data to keep track of execution process switching needs interaction with operating system the operating system manages the execution of all processes on the systemdividing the time fairly between all processes processes can also fork or spawn(give birthnew processes to perform other tasksbut each new process has its own memorydata stacketc and cannot generally share information unless inter process communication (ipcis employed sp_python programming