The professor, I believe, is using a text editor to run pre-made python code. I have been trying to do the same, and have googled for a couple of hours trying to find out how to do it. I am using notepad++, what do I need to do in order to I run my notepad script in python?
The professor is using the editor that comes with Python current version is 2.7.2. It is called IDLE. You don't need to install anything else (I'm using a Windows 7 computer, not familiar with other builds of this interpreter). hope this helps.
thanks for the reply chribonn! I guess my issue is that I really do prefer notepad++. Just now, I came along the solution for my own problem. In notepad++, if I go to run, and enter "C:\Python27\Lib\idlelib\idle.pyw" -r "$(FULL_CURRENT_PATH)" , with python27 being the version of python that I'm using, I can then initiate IDLE to run my notepad script. Whew! I like notepad because of it's options, I run with a black background because of headaches, so this makes a nice option for me.
Using komodo (the free version) myself, combining an endless amounts of p.languages in one advanced text editor (with a hundreds of options to choose from). While working on lessons i like to use IDLE. When IDLE Shell is open -> "New Window" (ctrl+N), to create a text_file.py, which can be run as seen in lectures by "Run" -> "Run Module" (F5). Wondered about this as well, when komodo would only run .py files like any command_line.exe (and closing right after). In FreeBASIC (another p.language, of compiling type) you need to add the sleep statement at the end of each module/program/script, to ensure it can be seen even when the program run through, which is not the same as python sleep command. Sorry for the random information bit, just leaving it there, in case anyone finds it interesting.
Join our real-time social learning platform and learn together with your friends!