Back to Lesson
FileNotFoundError
Attempt to open a non-existent file and gracefully handle the resulting error.
Instructions
- Try to openin
"missing.txt"(read mode)."r" - Catch the.
FileNotFoundError - Printinside the except block.
"File does not exist"
main.py
main.py
Ctrl + Enter