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?
just right click on the file and choose open with idle/ any other text editor
@hiltonda DId it solve your problem ?
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.
a little more information are you using windows ?
Yes I am, Windows 7.
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
Thank you! I just needed to open the file from inside IDLE instead - easy!
Welcome!
Join our real-time social learning platform and learn together with your friends!