title: What does the 'with' statement do in python?
body: <p>I am new to Python. In one tutorial of connecting to mysql and fetching data, I saw the <code>with</code> statement. I read about it and it was something related to <code>try-finally</code> block. But I couldn't find a simpler explanation that I could understand.</p>