This is what I'm doing
with open("fileA", "r") as A: with open("fileB", "r") as B: with open("fileC", "w") as C: # Read from A, B, and write to C ...
Is there a more pythonic way for opening multiple files at once without all the indentation?
with open("file A", "r") as A, open("fileB", "r") as B, open("fileC", "w") as C: ....
Actually had to check the exact syntax on this StackOverflow post, credit is due.