Skip to content

Commit 26625f2

Browse files
carladnnja
andauthored
fix small typo (nnja#25)
* fix small typo * Remove errant new line Co-authored-by: Nina Zakharenko <[email protected]>
1 parent 90c59bf commit 26625f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/content/03-intermediate-python/40-exceptions/30-try-except-else-finally.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ draft: false
55
weight: 3
66
---
77

8-
Many languages have the concept of the "Try-Catch" block. Python uses four keywords: `try`, `except`, `else`, and `finally`. Code that can possibly throw an exception goes in the `try` block. `except` gets the code that runs if an exception is raised. `else` is an optional block that runs if no exception was raise in the `try` block, and `finally` is an optional block of code that will run last, regardless of if an exception was raised. We'll focus on `try` and `except` for this chapter.
8+
Many languages have the concept of the "Try-Catch" block. Python uses four keywords: `try`, `except`, `else`, and `finally`. Code that can possibly throw an exception goes in the `try` block. `except` gets the code that runs if an exception is raised. `else` is an optional block that runs if no exception was raised in the `try` block, and `finally` is an optional block of code that will run last, regardless of if an exception was raised. We'll focus on `try` and `except` for this chapter.
99

1010
A basic example looks like this:
1111

0 commit comments

Comments
 (0)