Go into IDLE if you are not already. Go to File then New Window. In this window type the following:
print "how are you"
First save the program. Go to File then Save. Save it as ‘how.py’. (If you want you can save it to some other
directory than the default.) Now that it is saved it can be run.
Next run the program by going to Run then Run Module (or if you have a older version of IDLE use Edit then
Run script). This will output how are you on the *Python Shell* window.
Confused still? Try this tutorial for IDLE at http://hkn.eecs.berkeley.edu/ dyoo/python/idle intro/index.html
No comments:
Post a Comment