Open in TheBrain

Editor Interpreter Control Comments Lines Def

<p>Control C stops an infinite loop

&#160;

note: &#160;the python interpreter IDL goes thru a <b>READ, EVAL, PRINT loop</b>...

&#160;

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 &#160;(hit F5 key) &#160;to return to the IDLE command line interpreter to run it</b>...

&#160;

to define a function I first hit CONTROL N and then

type in the function def to that window :

&#160;

def Sean(a,b): &#160;&#160;&#160;note that's a COLON not a semicolon... note args separ by comma)

&#160;&#160;&#160;&#160;c=ab &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;note: &#160;INDENT is essential and is placed automatically (use delete to get rid of it)

&#160;&#160;&#160;&#160;print c &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;to save your work hit control s as usual and then <b>to run it hit the F5 button</b>.

&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;we save work to the desktop.

&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Note: you need to name it &#160;eg Module.py &#160;&#160;( a python executable)

&#160;

Jan 24, 2013 05:07 PM

&#160;

alt p &#160;redoes previous line... can keep going back

&#160;

alt n &#160;goes forward from a prev line...

&#160;

alt 3 &#160;will comment out an entire highlighted area

&#160;

alt 4 will uncomment highlighted area.</p>