Sep-13-2019, 01:40 AM
Do you have the correct path to locate the file? If have an incorrect path and it will try to open the file in the default path. If your data file is not in this directory, the file cannot be opened.
default path in idle
C:\Users\yourname\AppData\Local\Programs\Python\Python37>
default path in idle
C:\Users\yourname\AppData\Local\Programs\Python\Python37>