Python - File Handling Fundamentals
You want to safely read a file named
log.txt and automatically close it after reading. Which code snippet correctly does this using Python's best practice?