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).
The Raspberry Pi Foundation has launched a new introductory path for Python programming aimed at young people. The new Introduction to Python project path has been designed to teach kids the basics of ...