Python can't find .txt-file - Stack Overflow
stackoverflow.com › questions › 49217617Mar 11, 2018 · Your .txt file being in the same folder as the .py file doesn't really mean anything. You need to make sure that the result of: import os os.getcwd() is the directory where you have your text file. The traceback tells us that it is not. So you have two options here: Change your working directory at the top of the script to where your text file is: