how to open files? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to open files?

hi how should I run some file in a specific drive on my pc I mean how can I address it to the python terminal should I mention the drive like C, D or whatever?

27th Jul 2020, 5:31 AM
Inifnite Science
Inifnite Science - avatar
2 Answers
+ 7
It's not quite clear what you are achieving. In title you mentioned "... open files ..." and in text you name it " ... run some file ...". This can mean different things: (1) you want to open a file from within a python program and read the some data (2) you want to run a python file to execute it It would be great if can give us some more details. Thanks!
27th Jul 2020, 9:52 AM
Lothar
Lothar - avatar
+ 6
Inifnite Science You have to give full path of your files.
27th Jul 2020, 5:43 AM
A͢J
A͢J - avatar