0
What does the with function do?
3 Answers
+ 1
first, it's a statement.
Second, it opens what is called a "context manager" that closes automatically at the end of indentation, dealing with exceptions if needed.
+ 1
Thanks
0
can some1 give an appropriate syntax using with statement...pls



