Sean_Worcester:

FileNotFoundError: [Errno 2] No such file or directory


When you open a file with the name “filename.ext”; you are telling the open() function that your file is in the current working directory . This is called a relative path.
file = open('filename.ext') //relative path
In the above code, you are not giving the full path to a file to the open() function, just its name - a relative path. The error “FileNotFoundError: [Errno 2] No such file or directory” is telling you that there is no file of that name in the working directory. So, try using the exact, or absolute path.
file = open(r'C:\path\to\your\filename.ext') //absolute path
In the above code, all of the information needed to locate the file is contained in the path string - absolute path.