What Is The Optional Statement Used In A Try Except Statement In Python
Adding to what is echoed already..
<some error or exception>
<always do this as if you failed in trying above>
There are two optional clauses used in try except statements:1. Else clause: It is useful for code that must be executed when the try block does not create any exception2. Finally clause: It is useful for code that must be executed irrespective of whether an exception is generated or not.
2009-2016 downloadmela.com. All rights reserved.