How do I open a file in a Python program if the error I'm getting says the file doesn't exist? It exists in my fileexplorer.
Error message:
Traceback (most recent call last):
File "<string>", line 1, in <module>
FileNotFoundError: [Errno 2] No such file or directory: 'Test.txt'
I tried to open a different file, which also didn't work. Do I need to transfer the file to another directory, or try a different line of code?