Python Developer — Medium
Key points
- The 'with' statement in Python is used for resource management.
- The 'r' mode in open() function stands for read-only.
- Closing the file explicitly is not required when using 'with open()'.
Ready to go further?
Related questions
