Context managers allow you to set-up and teardown things before and and after you code is executed. There are many use cases but the concept takes a while to get used to. In this video, you will see an example of the built-in file context manager and learn how to create one to prevent a well-known problem in apps.