dua file dengan terbuka

with open('a', 'w') as a, open('b', 'w') as b:
    do_something()
Embarrassed Emu