fileinput
fileinput — Iterate over lines from multiple input streams
https://docs.python.org/3/library/fileinput.html
Examples
MetPy Mondays
'#84 - fileinput and multiple files : Unidata Developer's Blog
https://www.unidata.ucar.edu/blogs/developer/entry/metpy-mondays-84-fileinput-and