How can open a python file in python program | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How can open a python file in python program

Please answer me effectively

26th Dec 2019, 1:41 AM
Bharathkannan R
Bharathkannan R - avatar
14 Answers
+ 2
How can open the python file in the another python program?
26th Dec 2019, 1:51 AM
Bharathkannan R
Bharathkannan R - avatar
+ 2
Ok sir thnx for your information
26th Dec 2019, 1:52 AM
Bharathkannan R
Bharathkannan R - avatar
+ 2
And another question with you sir that was can run html file in python?
26th Dec 2019, 1:53 AM
Bharathkannan R
Bharathkannan R - avatar
+ 2
Am new user sir
26th Dec 2019, 1:53 AM
Bharathkannan R
Bharathkannan R - avatar
+ 2
Ok thanks 😊
26th Dec 2019, 1:57 AM
Bharathkannan R
Bharathkannan R - avatar
+ 2
Randych thank you, I just searched it up an you're right, you need to install python, thanks!
26th Dec 2019, 4:46 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
Aymane Boukrouh not sure but I'm think you're misleading by saying that Python comes with PyCharm.
26th Dec 2019, 9:25 AM
Randych
Randych - avatar
+ 1
Man lawn that wasn't his question
27th Dec 2019, 8:05 AM
Randych
Randych - avatar
0
You open them in an IDE, or you run them in the command line
26th Dec 2019, 1:50 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
I don't understand you question. A python program is just a python file that was run, you cannot run a program inside another.
26th Dec 2019, 1:51 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
bharathkanna what IDE do you use ?
26th Dec 2019, 1:52 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
bharathkanna don't call me sir, I'm just a learner like you 🙂. I meant what ide ? Try spyder or pycharm IDEs, you can download them for windows 10. Python comes pre-installed in them, all you have to do is open the file and click run EDIT: I just read that PyCharm does not come with python installed, sorry.
26th Dec 2019, 1:56 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
So what is the question
27th Dec 2019, 9:00 AM
Man lawn
Man lawn - avatar
- 1
with open(file name.extension) as a Now a is a file object
27th Dec 2019, 8:04 AM
Man lawn
Man lawn - avatar