I&#39;m attempting to learn how to use the &quot;with....as&quot; statement in python. <br><br>I&#39;ve read the documentation and also a few tutorials but I still cannot understand the concept. or how this is normally used. Can someone please write an example or 2 of simple ways to use the &quot;with statement&quot;. <br>
<br>I understand in java the try...catch...finally block so maybe someone can point out the relationship between them.<br><br>thanks.<br>