Pythondex
Turtle Python Programs

Draw Whatsapp Logo Using Python

Last updated July 3, 2023 by Jarvis Silva

Want to know how to draw Whatsapp logo using python, then you are at the right place. Today in this tutorial I will show you how to create this program step by step in python so follow till the end.

Whatsapp is one of the most popular messaging app used by people around the world, so today I have decided to create a tutorial on drawing its logo using python.

We will use the turtle module to draw the Whatsapp logo in python. Turtle is a GUI library with the help of this library you can draw anything in python. 

Python Code To Draw Whatsapp Logo


from turtle import *

speed(2)
Screen().bgcolor("black")
penup()
goto(-20,-20)
pendown()
color("white")
begin_fill()
circle(150)
end_fill()

penup()
goto(-100,10)
pendown()
begin_fill()
right(165)
forward(100)
right(130)
forward(100)
end_fill()

color("green")
penup()
goto(-30,-10)
pendown()
begin_fill()
right(70)
circle(140)
end_fill()

color("green")
penup()
goto(-100,20)
pendown()
begin_fill()
right(160)
forward(80)
right(130)
forward(90)
end_fill()

color("white")
penup()
goto(40,40)
pendown()
begin_fill()
right(60)
circle(140,-90)
right(30)
circle(50,-50)
left(90)
forward(40)
right(90)
forward(20)
penup()
goto(40,40)
pendown()
right(150)
circle(50,50)
left(80)
forward(40)
left(90)
forward(20)
left(98.5)
circle(95,-90)
end_fill()

color("green")
width(2)
begin_fill()
circle(92,90)
end_fill()
left(135)
width(5)

penup()
forward(10)
pendown()
forward(60)

penup()
goto(-150,-100)
pendown()

hideturtle()

done()

Above is the python code for drawing the Whatsapp logo. 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.

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.

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 the Whatsapp Logo and below is the finished drawing of the logo.

Whatsapp logo drawing

As you can see, we successfully drew the exact Whatsapp logo using python, I hope you found this tutorial helpful and useful, do share it with your friends who might find it intresting.

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

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 🙂