Skip to content

Commit

Permalink
Update python.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nkoroste authored Dec 13, 2024
1 parent a898713 commit 3b1b5c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ file.close()

```py
with open("welcome.txt", "r") as file:
# 'file' refers directly to "welcome.txt"
# 'file' refers directly to "welcome.txt"
data = file.read()

# It closes the file automatically at the end of scope, no need for `file.close()`.
Expand Down

0 comments on commit 3b1b5c9

Please sign in to comment.