Python – Snowman




# Christina Schneider
# Python Turtle (Snowman)
# 2-25-25
import turtle
t = turtle
t.pensize(1)
t.hideturtle()
# snowman head
t.circle(20)
# snowman middle
t.penup()
t.goto(0, -60)
t.pendown()
t.circle(30)
# snowman bottom
t.penup()
t.goto(0, -140)
t.pendown()
t.circle(40)
# middle buttons
t.penup()
t.goto(0, -25)
t.pendown()
t.begin_fill()
t.color('red')
t.circle(5)
t.end_fill()
t.penup()
t.goto(0, -45)
t.pendown()
t.begin_fill()
t.color('blue')
t.circle(5)
t.end_fill()
# bottom buttons
t.penup()
t.goto(0, -85)
t.pendown()
t.begin_fill()
t.color('orange')
t.circle(5)
t.end_fill()
t.penup()
t.goto(0, -105)
t.pendown()
t.begin_fill()
t.color('green')
t.circle(5)
t.end_fill()
t.penup()
t.goto(0, -125)
t.pendown()
t.begin_fill()
t.color('purple')
t.circle(5)
t.end_fill()
# right arm
t.penup()
t.goto(28, -28)
t.pendown()
t.color('brown')
t.pensize(3)
t.goto(80, 0)
# left arm
t.penup()
t.goto(-28, -25)
t.pendown()
t.color('brown')
t.pensize(3)
t.goto(-80, 0)
# hat
t.penup()
t.goto(-20,40)
t.pendown()
t.color('brown')
t.goto(20, 40)
t.begin_fill()
t.penup()
t.goto(-10, 40)
t.pendown()
t.goto(-10, 60)
t.goto(10, 60)
t.goto(10,40)
t.end_fill()
# eyes
t.pencolor('blue')
t.penup()
t.goto(-5,25)
t.pendown()
t.dot()
t.penup()
t.goto(5,25)
t.pendown()
t.dot()
# mouth
t.penup()
t.goto(-10, 15)
t.pendown()
t.color('red')
t.pensize(2)
t.goto(-5, 10)
t.goto(5, 10)
t.goto(10, 15)