Activities/Turtle Art: Difference between revisions

Tonyforster (talk | contribs)
Tonyforster (talk | contribs)
Line 675: Line 675:


====Python function block====
====Python function block====
The Python function block is processed through tajail.py. For security reasons, it cannot access Turtle Art objects. It can it only access the Python language and the time, math and numpy libraries.
from time import *
from math import *
try:
    from numpy import *
Python language, see http://docs.python.org/tutorial/
Math library, see http://docs.python.org/library/math.html
Time library, see http://docs.python.org/library/time.html
Numpy library, see numpy.scipy.org/


====Python code block====
====Python code block====