+ 1
question regarding exception,finally ...
Will the close() function get called in this code? https://code.sololearn.com/cgCbzF4Dp954/#py Yes or No ? Why ?
1 Answer
+ 3
Yes. Finally gets executed regardless of how you exit the try block.
Will the close() function get called in this code? https://code.sololearn.com/cgCbzF4Dp954/#py Yes or No ? Why ?