python with several files code example
Example: how to use one with as statement to open two files python
with open('a', 'w') as a, open('b', 'w') as b:
do_something()
with open('a', 'w') as a, open('b', 'w') as b:
do_something()