import turtle
myTurtle = turtle.Turtle()
myTurtle.forward(100)
myTurtle.right(90)
myTurtle.forward(100)
import turtle
a = turtle.Turtle()
a.color("orange")
a.begin_fill()
for i in range (1,11):
a.forward(36)
a.left(36)
a.end_fill()
a.right(90)
a.forward(30)
a.color("red")
a.write("Decagon")
a.forward(25)
import turtle
#creating a square with turtle
t = turtle.Turtle()
t.forward(100)
t.color('blue')
t.right(90)
t.forward(100)
t.right(90)
t.forward(100)
t.right(90)
t.forward(100)
>>> tp = turtle.pos()
>>> tp
(0.00,0.00)
>>> turtle.setpos(60,30)
>>> turtle.pos()
(60.00,30.00)
>>> turtle.setpos((20,80))
>>> turtle.pos()
(20.00,80.00)
>>> turtle.setpos(tp)
>>> turtle.pos()
(0.00,0.00)
import turtle
tina=turtle.Turtle()
#trinket.io specializes in these stuff
# Turtule Yellow Fill Star - Nanosoft
from turtle import *
color('red', 'yellow')
begin_fill()
while True:
forward(200)
left(170)
if abs(pos()) < 2:
break
end_fill()
done()
import turtle
tim = turtle.Pen()
t.shape('turtle')
t.pensize(5)
t.color('blue')
t.speed(1)