Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python turtle commands

"""
TURTLE COMMANDS
command       shortcut      makes the turtle """
goto(x, y)    setpos(x, y)  # go to x, y coordinates
forward(d)    fd(d)         # go forward d units
back(d)       bk(d)         # go backward d units
left(a)       lt(a)         # rotate left a degrees
right(a)      rt(a)         # rotate right a degrees
setheading(h) seth(h)       # set heading to h degrees

write(text)                 # write text in the screen
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #python #turtle #commands
ADD COMMENT
Topic
Name
6+6 =