Draw Heart Using Turtle Graphics in Python Last Updated : 17 Apr, 2025 Comments Improve Suggest changes Like Article Like Report Python's Turtle Graphics module provides a simple way to create drawings and shapes using a virtual pen (called a "turtle") that can move across the screen. In this tutorial, we will learn how to draw a heart shape using Turtle Graphics and customize it with colors and text. Before proceeding, you should have a basic understanding of Turtle Programming in Python. You can install the Turtle module (if not already installed) using:pip install PythonTurtleHowever, the Turtle module is built-in with Python, so no additional installation is usually required.Step-by-Step ApproachImport Turtle: Load the Turtle module in Python.Create a Turtle object: This acts as a pen for drawing.Define a function for the curve: The heart consists of two smooth curves.Draw the heart shape: Combine straight lines and curves to form the heart.Display text inside the heart: Add a message using Turtle’s write() function.Execute the drawing: Call the functions to create the final output.Python code python import turtle pen = turtle.Turtle() # Defining a method to draw curve def curve(): for i in range(200): pen.right(1) pen.forward(1) # Defining method to draw a full heart def heart(): pen.fillcolor('red') pen.begin_fill() pen.left(140) pen.forward(113) curve() pen.left(120) curve() pen.forward(112) pen.end_fill() # Defining method to write text def txt(): pen.up() pen.setpos(-68, 95) pen.down() pen.color('lightgreen') pen.write("GeeksForGeeks", font=("Verdana", 12, "bold")) heart() txt() pen.ht() Output:Explanation:Left Side: Turn 140° left, move forward to form the straight edge.Left Curve: Loop 200 times, moving forward and turning 1° right in each step.Right Curve: Turn 120° left, repeat the curve function.Right Side: Move forward to complete the heart shape.Fill Color: Start filling before drawing and stop after completion.Add Text: Lift the pen (pen.up()), move to position, write text with pen.write().Hide Turtle: Use pen.ht() to remove the cursor after drawing.Related Articles:Turtle Programming in PythonPython Tutorial Comment More infoAdvertise with us Next Article Draw Heart Using Turtle Graphics in Python D deepanshu_rustagi Follow Improve Article Tags : Python Python-turtle Practice Tags : python Similar Reads Draw Graph Grid Using Turtle in Python Prerequisite: Turtle Programming Basics Turtle is an inbuilt module in Python. It provides drawing using a screen (cardboard) and turtle (pen). To draw something on the screen, we need to move the turtle (pen). To move turtle, there are some functions i.e forward(), backward(), etc. Approach: Follow 2 min read Draw Panda Using Turtle Graphics in Python Pythonâs turtle module makes drawing fun and easy with simple commands. In this tutorial, weâll draw a cute panda step by step using basic functions like penup(), pendown(), setpos() and circle(). Steps to draw a PandaLet's understand the step-by-step approach to draw a panda using Pythonâs turtle m 2 min read Draw Rainbow using Turtle Graphics in Python Turtle is an inbuilt module in Python. It provides:Â Drawing using a screen (cardboard).Turtle (pen). To draw something on the screen, we need to move the turtle (pen), and to move the turtle, there are some functions like the forward(), backward(), etc. Prerequisite: Turtle Programming Basics Draw 2 min read Draw Ellipse Using Turtle in Python Prerequisite: Turtle Programming Basics Turtle is an inbuilt module in Python. It provides drawing using a screen (cardboard) and turtle (pen). To draw something on the screen, we need to move the turtle (pen). To move turtle, there are some functions i.e forward(), backward(), etc. Approach: The fo 2 min read Python - Draw "GFG" logo using Turtle Graphics Prerequisites: Turtle Programming in Python Turtle is a Python feature like a drawing board, which let us command a turtle to draw all over it! We can use many turtle functions which can move the turtle around. Turtle comes into the turtle library. The turtle module can be used in both object-orient 2 min read Draw Diamond shape using Turtle graphics in Python In this article, we are going to learn how to draw the shape of a Diamond using turtle graphics in Python. Turtle graphics: forward(length): moves the pen in the forward direction by x unit.right(angle): rotate the pen in the clockwise direction by an angle x.left(angle): rotate the pen in the antic 2 min read Draw a Flower using Turtle in Python We are given the task of drawing a flower using Turtle Graphics in Python. Our goal is to create a design that looks like a flower with multiple petals arranged in a circular pattern. We will do this by using loops to repeat the petal shape and turtle commands to draw and rotate the petals, forming 3 min read Draw a car using Turtle in Python Prerequisite: Turtle module, Drawing Shapes There are many modules in python which depict graphical illustrations, one of them is a turtle, it is an in-built module in Python, which lets the user control a pen(turtle) to draw on the screen(drawing board). It is mostly used to illustrate figures, sha 2 min read Draw Dot Patterns Using Turtle in Python Prerequisite: Turtle Programming Basics Turtle is an inbuilt module in Python. It provides drawing using a screen (cardboard) and turtle (pen). To draw something on the screen, we need to move the turtle (pen). To move turtle, there are some functions i.e forward(), backward(), etc. 1) Draw Dot Squa 2 min read Draw a Hut using turtle module in Python Turtle is a inbuilt module in Python, which has many functions like forward(), backward(), right() and left() etc. You can draw a hut on the screen just by using the turtle module in Python. In this article, we will create a hut using the turtle module. Approach: Import turtleSet the background colo 2 min read Like