Python

Use of finally keyword in Python 31 min read

The finally keyword is used in conjunction with the try and except keywords. Whatever the issue of the try / except blocks, the finally block will be executed (even if there is an explicit request for function output).

Example Code:




Output:

 

 

Leave a Comment