Autosave: 2024-05-31 13:00:04

This commit is contained in:
thomasabishop 2024-05-31 13:00:04 +01:00
parent 25b816aa20
commit 04e268f1bd
2 changed files with 2 additions and 3 deletions

Binary file not shown.

View file

@ -131,8 +131,7 @@ file.close()
Obviously file access can raise errors - typically when the file you want to Obviously file access can raise errors - typically when the file you want to
access does not exist (i.e. a `FileNotFoundError` access does not exist (i.e. a `FileNotFoundError`
[exception](Error_handling_in_Python.md)). [exception](Error_handling_in_Python.md)). We can manage this scenario with
We can manage this scenario with
[exception handlers](Error_handling_in_Python.md): [exception handlers](Error_handling_in_Python.md):
```py ```py
@ -184,7 +183,7 @@ file.close()
## Renaming and deleting files ## Renaming and deleting files
We hace to use another built-in module to rename and delete files: `os`. We have to use another built-in module to rename and delete files: `os`.
To rename an existing file: To rename an existing file: