os.path.join (folder, filename) ensures the path is correct for the system. On Windows, it uses backslashes (reports\summary.txt); on Linux and macOS it uses forward slashes (reports/summary.txt).
Life without Python’s ‘dead batteries ’ Python’s a “batteries included” language, but some of those batteries have been dead for a while. Python 3.13 ripped ‘em out and sent ’em sailing. But what to ...