This One Python Trick Will Make Your Code Look Like a Pro’s
How I learned to stop worrying about messy code and love the with statement
If you’ve written more than a few lines of Python, you’ve probably used the with statement. It’s that thing you use to open files:
with open('file.txt', 'r') as f:
conte...
aaron-rose.hashnode.dev4 min read