Explore

Close
Turtle Programs Share

Draw A Snowman In Python Turtle With Code

Draw A Snowman In Python Turtle With Code

Looking for a tutorial on how to draw a snowman in python turtle, then you are at the right place today. In this tutorial, I will show you how to draw a snowman in python turtle, so follow this tutorial till the end.

We will use the turtle module to draw triangle in python. It is a GUI python library which can be used to draw anything from characters, cartoons, shapes and other objects.

Python Code To Draw A Snowman


import turtle as t

t.speed(5)
t.setup(800, 700)
t.bgcolor("blue")
 
# Bottom of body
t.penup()
t.goto(0, -280)
t.pendown()
t.color("white")
t.begin_fill()
t.circle(110)
t.end_fill()
 
# Middle of body
t.penup()
t.goto(0, -110)
t.pendown()
t.begin_fill()
t.circle(90)
t.end_fill()
 
# Head of Snowman
t.penup()
t.goto(0, 20)
t.pendown()
t.begin_fill()
t.circle(70)
t.end_fill()
 
# Function to draw 1 small black circle
def black_circle():
	t.color("black")
	t.begin_fill()
	t.circle(10)
	t.end_fill()
 
# Eyes
x = -20
for i in range(2):
	t.penup()
	t.goto(x, 110)
	t.pendown()
	black_circle()
	x = x + 40
 
# Buttons
y = 0
for i in range(5):
	t.penup()
	t.goto(0, y)
	t.pendown()
	black_circle()
	y = y - 55
 
# Mouth
t.penup()
t.goto(0,70)
t.pendown()
t.color("red")
t.begin_fill()
t.circle(17)
t.end_fill()
 
t.penup()
t.goto(0,75)
t.pendown()
t.color("white")
t.begin_fill()
t.circle(17)
t.end_fill()
 
# Right Arm
t.penup()
t.goto(75, 0)
t.pendown()
t.color("brown")
t.begin_fill()
t.left(40)
for i in range(2):
	t.forward(75)
	t.left(90)
	t.forward(7)
	t.left(90)
t.end_fill()
 
# Right Finger 1
t.penup()
t.goto(115, 38)
t.pendown()
t.begin_fill()
t.left(40)
for i in range(2):
	t.forward(25)
	t.left(90)
	t.forward(5)
	t.left(90)
t.end_fill()
 
# Right Finger 2
t.begin_fill()
t.right(100)
for i in range(2):
	t.forward(25)
	t.left(90)
	t.forward(5)
	t.left(90)
t.end_fill()
 
# Left Arm
t.penup()
t.goto(-130, 50)
t.pendown()
t.begin_fill()
t.right(10)
for i in range(2):
	t.forward(75)
	t.right(90)
	t.forward(7)
	t.right(90)
t.end_fill()
 
# Left Finger 1
t.penup()
t.goto(-112, 58)
t.pendown()
t.begin_fill()
t.right(40)
for i in range(2):
	t.forward(25)
	t.right(90)
	t.forward(5)
	t.right(90)
t.end_fill()
 
# Left Finger 2
t.begin_fill()
t.right(100)
t.penup()
t.goto(-108, 31)
t.pendown()
for i in range(2):
	t.forward(25)
	t.right(90)
	t.forward(5)
	t.right(90)
t.end_fill()
 
# Hat
t.penup()
t.goto(50, 150)
t.pendown()
t.color("black")
t.begin_fill()
t.right(10)
t.forward(100)
t.right(90)
t.forward(10)
t.right(90)
t.forward(20)
t.left(90)
t.forward(45)
t.right(90)
t.forward(60)
t.right(90)
t.forward(45)
t.left(90)
t.forward(20)
t.right(90)
t.end_fill()
 
 
t.hideturtle()

t.done()

Above is the python program to draw a snowman in turtle. Now to run this program you need to have python installed on your computer, If you don’t have then follow this guide: Install and setup python on your computer.

To run this python program, follow the below steps:

  • Create a new folder for this python project.
  • Open it in a code editor of your choice.
  • Create a python file with an ending .py extension.
  • Copy the above code and paste it in your file.

Now you have the code, but there is one last thing you need to do as I have said I have used the turtle library for this program so you might need to install it if you get any errors like turtle module not found.

Turtle comes pre-installed with python setup, but if you get any errors you can install it using the below command.


pip install turtle

So now you have everything setup and you are ready to run the program, so to run this program open a command prompt at your program folder location and paste the below command.


python filename.py

The above command will run the program and it will open a new window and it will start drawing a snowman and below is the finished drawing of a snowman.

Snowman Drawing In Python

As you can see, we successfully drew a snowman using python turtle. I hope you were able to run this program successfully. 

Want more amazing turtle tutorials like this check out this: Awesome Python Turtle Codes.

Don’t want to create all the files and folders then you can run this program now using this online python compiler it is fast and easy.

Summary

This was the tutorial on drawing a snowman in python turtle. I hope you found this tutorial helpful and useful. Do share this tutorial with your friends who might be interested in this program.

Here are some more python drawing tutorials for you:

I hope you found what you were looking for from this tutorial, and if you want more python guides and tutorials like this, do join our Telegram channel for future updates.

Thanks for reading, have a nice day 🙂