+ 1
Code logic description
Why this code results 1 & 3 ? what is the logic ? https://code.sololearn.com/cme9QcRfeLBK/#py
1 Antwort
+ 4
Since no exceptions were thrown, only the code in the try and finally blocks are executed.
If an error did occur in the try block, the catch block would have executed immediately.
The finally block is always executed last.