Here's some basic starter code to get started!
import turtle as t
# t.penup()
# t.pendown()
# t.bgcolor()
# t.color()
# t.pensize()
# t.speed()
# t.begin_fill()
# t.end_fill()
# t.fillcolor()
# t.forward()
# t.backward()
# t.left()
# t.right(0)
# t.circle()
# t.setheading()
# t.hideturtle()
# t.home()
# t.goto()
# t.done()
With just a few lines of code, you can begin building simple shapes. In a short time, you can draw more complex shapes using loops.
![]() | t.pensize(5) t.penup() t.goto(-200, 0) t.pendown() t.right(90) t.circle(150, 180) t.right(180) t.circle(150, 180) t.left(90) t.forward(600) t.done() |
![]() |
turtle.done() |