diff --git a/guide/english/python/exception-and-error-handling/index.md b/guide/english/python/exception-and-error-handling/index.md index 8877667fcd..dac0c105b2 100644 --- a/guide/english/python/exception-and-error-handling/index.md +++ b/guide/english/python/exception-and-error-handling/index.md @@ -29,7 +29,22 @@ except Exception as err: >>> error: >>> must be str, not int ``` +Two additional clauses for the try-except statement are `else` and `finally`. The `else` clause executes when the program runs successfully without any error. While the `finally` clause will always execute no matter what: +```python +try: + print("this is a " + "string") +except Exception as err: + print("error:\n" + str(err)) +else: + print("successfully concatenated string") +finally: + print("end execution") + +>>> this is a string +>>> successfully concatenated string +>>> end execution +``` More Information: Errors and Exceptions documentation.