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).
Suppose you want to watch an mkv file that contains multiple tracks in the same language. You want to select one of them. It's annoying to constantly switch the track to a desired one in your media ...
Note: extra topics are not in CS Academy, but are required and can appear on any future homework, writing session, quiz, or exam. def andFunction(A, B): return A and B def orFunction(A, B): return A ...