Changes

Jump to navigation Jump to search
m
Line 854: Line 854:  
         lc.heap.append(0) # no mouse event
 
         lc.heap.append(0) # no mouse event
   −
===Understanding the Structure of the Turtle Art program===
+
===Understanding the structure of the Turtle Art program===
 
Turtle Art offers two blocks for adding Python code,  
 
Turtle Art offers two blocks for adding Python code,  
 
* the Python function block [[image:Pythonfunctionblock.jpg]] adds a single line of code,  
 
* the Python function block [[image:Pythonfunctionblock.jpg]] adds a single line of code,  
* the Python code block [[image:Pythoncodeblock.jpg]] supports multi line code.
+
* the Python code block [[image:Pythoncodeblock.jpg]] supports multi-line code.
    
====Python function block====
 
====Python function block====
Line 872: Line 872:  
For more information on allowable syntax for this block:
 
For more information on allowable syntax for this block:
 
* Python language, see http://docs.python.org/tutorial/
 
* Python language, see http://docs.python.org/tutorial/
* Math library, see http://docs.python.org/library/math.html  
+
* math library, see http://docs.python.org/library/math.html  
* Time library, see http://docs.python.org/library/time.html
+
* time library, see http://docs.python.org/library/time.html
* Numpy library, see numpy.scipy.org/
+
* <strike>Numpy library, see numpy.scipy.org/</strike> (Not supported as of v104)
    
====Python code block====
 
====Python code block====

Navigation menu