This assignment demonstrates:
-
File Read & Write Challenge 🖋️
- Reads the contents of a file.
- Modifies it (in this case, converts text to uppercase).
- Saves it to a new file.
-
Error Handling Lab 🧪
- Asks the user for a filename.
- Handles errors if the file does not exist or cannot be accessed.
By completing this assignment, you will:
- Learn how to read and write files in Python.
- Gain experience handling exceptions (
try,except) gracefully. - Build more reliable, fault-tolerant applications.
- Clone the repository or download the script.
- Run the Python file:
python file_exception_assignment.py