My knowledge of Python and of programming in general is self-taught from online sources - just enough to make me dangerous. I'm working on my first major Python project, and it's going well in some ...
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).