Editor Interpreter Control Comments Lines Def
<p>Control C stops an infinite loop
 
note:  the python interpreter IDL goes thru a <b>READ, EVAL, PRINT loop</b>...
 
Jun 25, 2012 11:05 AM
<b>CONTROL N (for NEW) to call the FUNCTION EDITOR</b> ....
control S to save the new function then
<b>F5  (hit F5 key)  to return to the IDLE command line interpreter to run it</b>...
 
to define a function I first hit CONTROL N and then
type in the function def to that window :
 
def Sean(a,b):    note that's a COLON not a semicolon... note args separ by comma)
    c=ab          note:  INDENT is essential and is placed automatically (use delete to get rid of it)
    print c           to save your work hit control s as usual and then <b>to run it hit the F5 button</b>.
                        we save work to the desktop.
                        Note: you need to name it  eg Module.py   ( a python executable)
 
Jan 24, 2013 05:07 PM
 
alt p  redoes previous line... can keep going back
 
alt n  goes forward from a prev line...
 
alt 3  will comment out an entire highlighted area
 
alt 4 will uncomment highlighted area.</p>