with
We can use the with
keyword, which will close the file for us after we’re finished:
pass
Another place pass
can be used is as a place-holder for a function or conditional body when you are working on new code, allowing you to keep thinking at a more abstract level. The pass
is silently ignored: