Draw a Flower using Turtle in Python
Turtle is a Python feature like a drawing board, which lets us command a turtle to draw all over it! We can use functions like turtle.forward(…) and turtle.right(…) which can move the turtle around. Turtle is a beginner-friendly way to learn Python by running some basic commands and viewing the turtle do it graphically. It is like a drawing board that allows you to draw over it. The turtle module can be used in both object-oriented and procedure-oriented ways.
To draw, Python turtle provides many functions and methods i.e. forward, backward, etc. Some commonly used methods are:
- forward(x): moves the pen in the forward direction by x unit.
- backward(x): moves the pen in the backward direction by x unit.
- right(x): rotate the pen in the clockwise direction by an angle x.
- left(x): rotate the pen in the anticlockwise direction by an angle x.
- penup(): stop drawing of the turtle pen.
- pendown(): start drawing of the turtle pen.
In this article, we are going to write a code for drawing a Flower with the help of Turtle programming. As shown in the figure below.
How To Draw A Flower In Turtle Python
In this tutorial, we will discuss a step-by-step guide on How To Draw A Flower In Turtle Python With Source Code for free.
The code is very simple and easy to understand. So let’s start.
What is Turtle Python?
Python Turtle is a feature like a drawing board, which lets us command the turtle to draw all over it! which can move the turtle around with the use of functions like turtle.forward() and turtle.right()
Draw A Flower Using Turtle In Python
Here’s a step-by-step guide on How To Draw A Flower In Python Turtle with Source Codes.
How to Draw Flower in Python Turtle
We are building a project in which we will learn How to draw a flower with the help of a Python turtle. In this, we will split the code and explain how we can draw a beautiful flower by using functions and methods.
Before moving forward we should have some piece of knowledge about a flower.
A flower is part of the plant it is also known as a blossom. The flower has a pleasant smell and a brightly colored body. Flowers consist of petals and they grow at the top of the stem.
Draw Flower in Python Turtle
Now we are moving forward to start this project. Here we are just importing the below two Python turtle libraries.
Hereafter importing the library now we are creating an object for this turtle.
In python turtle, we are set the initial position of the flower by using the turtle() function. To set the position we have to use the following function.
- tur.penup() is used to pick up the pen and stop the drawing.
- tur.left (90) is used to move the turtle in the left direction.
- tur.fd (200) is used to move the turtle in the forward direction.
- tur.pendown() is used to start drawing.
- tur.right (90) is used to move the turtle in the right direction.
Now we are making a flower base by using the turtle() function. To make a beautiful base of a flower we are using the following function.
- tur.fillcolor (“red”) is used to fill the color inside the base of a flower.
- tur.begin_fill () is used to start filling the color.
- tur.circle (10,180) is used to draw the shape of a circle.
- tur.left (50) is used to move the turtle in the left direction.
- tur.right (24) is used to move the turtle in the right direction.
- tur.fd (30) is used to move the turtle in the forward direction.
- tur.end_fill () is used to stop filling color.
In python turtle, we are using the turtle() function to make the petal 1 of a flower. For making a petal we are using the following function.
- tur.left (150) is used to move the turtle in the left direction to give the perfect shape to the petal.
- tur.circle (-90,70) is used to draw the circle.
- tur.setheading (60) is used to set the orientation of the turtle to angle.
Now we are using the turtle() function to make a petal 2 of a flower. For making a petal we are using the following function.
- tur.left (180) is used to move the turtle in the left direction.
- tur.circle (90,40) is used to draw the shape of a circle.
- tur.setheading (-83) is used to set the orientation of the turtle to angle.
In python turtle, we are using the turtle() function to make a leaf 1 of a flower. For making a leaf we are using the following function.
- tur.fd (30) is used to move the turtle in the forward direction.
- tur.left (90) is used to move the turtle in the left direction.
- tur.fillcolor (“dark green”) is used to fill the color in the shape.
- tur.begin_fill () is used to start filling the color.
- tur.circle (-80,90) is used to draw the circle shape.
- tur.right (90) is used to move the turtle in the right direction.
Now we are using the turtle() function to make a leaf 2 of a flower. For making a leaf we are using the following function.
- tur.right (90) is used to move the turtle in the right direction.
- tur.fillcolor (“dark green”) is used to fill the color in the shape.
- tur.begin_fill () is used to start filling the color.
- tur.circle (80,90) is used to draw the circle shape.
- tur.left (90) is used to move the turtle in the left direction.
- tur.end_fill () is used to end filling the color.
tur.fd (60) is used to move the turtle in the forward direction.
Here after splitting the code and explaining how we can make a flower using python turtle now, we will see how the output looks like after running the whole code.
After running the above code we get the following output in which we can see that a beautiful flower is drawn on the screen.
So in this project, we have illustrated How to draw a flower in a Python turtle. Moreover, we have also discussed the whole code used in this project which is very helpful.
Related Python turtle tutorials:

I am Bijay Kumar, a Microsoft MVP in SharePoint. Apart from SharePoint, I started working on Python, Machine learning, and artificial intelligence for the last 5 years. During this time I got expertise in various Python libraries also like Tkinter, Pandas, NumPy, Turtle, Django, Matplotlib, Tensorflow, Scipy, Scikit-Learn, etc… for various clients in the United States, Canada, the United Kingdom, Australia, New Zealand, etc. Check out my profile.
Draw Flower In Python Using Turtle
Looking for a tutorial on how to draw flower using python then you are at the right place, in this tutorial we will create a python program to draw a petal and a rose flower if you want to know how to draw them follow along.
To draw these flowers in python we will use the turtle module, it is graphics library which allows us to draw character, animations etc.
Python Code To Draw Petal Flower
Above is the code for drawing a petal flower, I have added comments to each line of code so that you know what each line does.
As we have used the turtle library you might need to install it before you can run the program, mostily turtle is preinstalled with python but if you get any errors like turtle module not found then you use the below command to install
Now you can run the above program on your computer or use this online python compiler and below is the output you should get after running this program.

As you can see we have successfully drawn a petal flower now let’s see how to draw a rose in python.
Python Code To Draw a Rose Flower
Above is the code for drawing a rose in python, follow the steps which I told previously in how to draw a petal flower to run this program and below is the output you should get

As you can see it draws a beautiful red rose, if you know how to use the turtle module then you can make it more beautiful so now you know to draw two types of flowers in python.
- Draw doraemon using python turtle.
- Draw shinchan using python turtle.
- Draw I love you using python turtle.
- Draw Batman logo using python turtle.
- Draw Google Logo using python turtle.
- Make a python calculator using turtle.
- Draw christmas tree using python.
- Draw spiderman in python programming.
- Draw Captain America shield in python.
- Draw American flag in python turtle.
I hope you found what you were looking for from this python tutorial, do share this tutorial with your friends who might be interested and If you want more python tutorials like this, do join our Telegram channel for future updates.

Thanks for reading, have a nice day report this ad

report this ad