open one file at a time in python 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()