A file name is not enough: the program needs to know where the file is. Paths describe that, and they differ between Windows and the rest. Python’s pathlib module gives you one tidy way to build them, check them and walk through folders on any system.
More lessons in Complete Python Programming