Linux isn't just about picking a distro or desktop environment - it's also about optimizing how you interact with your PC for maximum efficiency.
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).
Do you want to use Linux, but are afraid that you'll have to use the command line? Fret not, as there is probably a GUI that can handle the command you might need.