If you want to learn to code in Python then it is best if you get an implementation installed on your computer. Use the version 2.7.3 found here. In my case in got the Python 2.7.3 Windows X86-64 Installer for my computer running Win8.
Once you have installed it, open in up and go to the IDLE Preferences item in the Options menu. Click on the General tab and then choose Open Edit Window in the Startup Preferences section. This will make sure that the next time you open Python you get the Editor instead of the command line shell interface.
The advantage of the shell interface is that each time you enter a line of code you get an immediate feedback on any errors you might have made in that line. The drawback - and it is a huge one for me - is that your code is not saved in any file so you cannot reuse them the next time. In the Editor interface, on the other hand, you write the complete code, save it as a file and then run the complete code. The editor will open up the shell, which is where the code is run, and display the final results. If there is any errors, you just switch back to the editor, make your corrections and run your code again.
Easy peasy.
Once you have installed it, open in up and go to the IDLE Preferences item in the Options menu. Click on the General tab and then choose Open Edit Window in the Startup Preferences section. This will make sure that the next time you open Python you get the Editor instead of the command line shell interface.
The advantage of the shell interface is that each time you enter a line of code you get an immediate feedback on any errors you might have made in that line. The drawback - and it is a huge one for me - is that your code is not saved in any file so you cannot reuse them the next time. In the Editor interface, on the other hand, you write the complete code, save it as a file and then run the complete code. The editor will open up the shell, which is where the code is run, and display the final results. If there is any errors, you just switch back to the editor, make your corrections and run your code again.
Easy peasy.

No comments:
Post a Comment