+ 1

File Python

Why am I forced to specify the path to a file in Python? Although I put the project and the file in the same folder, however, I can not put only the file name.

5th Apr 2023, 2:15 PM
Giovanni Paolo Balestriere
Giovanni Paolo Balestriere - avatar
3 ответов
+ 6
Giovanni Paolo Balestriere , make sure that the python file is physically stored and *saved* in the same folder as the file you wanted to read from. > to get a closer view on the issue, please link your python code here.
5th Apr 2023, 4:45 PM
Lothar
Lothar - avatar
+ 3
Are you talking about files on sololearn or on your computer
5th Apr 2023, 2:28 PM
Hasnain [ACTIVE CHALLENGER]
Hasnain [ACTIVE CHALLENGER] - avatar
+ 3
You need to make sure that the path where you runing your py file is the path where the file is
5th Apr 2023, 2:46 PM
KfirWe
KfirWe - avatar