turtle Module
The turtle module provides functions to manipulate a virtual "turtle" (
draw shapes and patterns.
Important!
• The turtle module of the Python app is a proprietary module created to run on this calculator. It is
different from the turtle module that runs on PC-based Python.
• The functions included in the turtle module in the Python app of this calculator may differ from
those of the turtle module of PC-based Python in terms of behavior, supported arguments, and other
specifications. Each function supports only the format and arguments specified here.
Note
• To use functions in the turtle module, you must import the turtle module.
To import the turtle module
1. Select C > [turtle].
2. On the menu that appears, select the commands below.
- from turtle import *
- import turtle
• When using the turtle module with the Python app, the
coordinates are fixed as shown below.
Origin: 0, 0
x -axis minimum value: -192, maximum value: 191
y -axis minimum value: -95, maximum value: 96
• The functions below can be written as is only when executed with Shell. To write them to a py file and
output the setting values, you need to write them inside print(), such as print(pencolor()).
pencolor(), pensize(), width(), shape(), speed(), isvisible(), isdown(), xcor(), ycor(), position(),
distance(,), towards(,), heading()
• In the syntax of each function shown in this section, anything included in square brackets ([ ]) can be
omitted.
The functions included in the turtle module of the Python app are described below.
plot([0,0.5,0.2])
plot([1,1.5,2.5])
bar(1,1)
130
bar([2,3],[2,3])
) with the pen. You can make the turtle
-192
96
0
191
-95
Need help?
Do you have a question about the CLASSWIZ CG and is the answer not in the manual?
Questions and answers