Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 26 Online
OpenStudy (anonymous):

I've downloaded the course content, but whenever I open a .py file, it simply executes the program instead of opening up the code in the editor. I'm now on problem set 2, and I need to access the code in the file, but can't at the moment - any help please?

OpenStudy (harsimran_hs4):

just right click on the file and choose open with idle/ any other text editor

OpenStudy (harsimran_hs4):

@hiltonda DId it solve your problem ?

OpenStudy (anonymous):

This doesn't work - the only option is to open the file, am not able to open it with any other program. I also can't change the type or file name it seems. Thanks anyway.

OpenStudy (harsimran_hs4):

a little more information are you using windows ?

OpenStudy (anonymous):

Yes I am, Windows 7.

OpenStudy (harsimran_hs4):

ok then you must be using IDLE, if the file you are clicking on is not in the folder where python was installed then you need to add IDLE to the environment variables. or open start menu type IDLE (this will open IDLE) then go to File > open file and then navigate to the place where you have saved your file

OpenStudy (anonymous):

Thank you! I just needed to open the file from inside IDLE instead - easy!

OpenStudy (harsimran_hs4):

Welcome!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!