python can't find file when running script from command promt; it works when ran in pycharm
python can't find file when running script from command promt; it works when ran in pycharm Question: This is my code: import os print(list(os.listdir(‘test’))) When I run the code in Pycharm it outputs the following: [‘test.txt’] However, when I run the same file with windows command prompt I get this output: (MLspraak) C:Usersphili>python C:UsersphiliPycharmProjectsMLspraaktest.py Traceback …