Dexian Interview Question

how does context manager work in python