Draw Heart Using Turtle Graphics in Python

Turtle is an inbuilt module in Python. It provides: 

  1. Drawing using a screen (cardboard).
  2. 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 Heart Using Turtle Graphics

In this section, we will discuss how to draw Heart using Turtle Graphics.


  1. Import Turtle
  2. Make Turtle Object
  3. Define a method to draw a curve with simple forward and left moves
  4. Define a method to draw the full heart and fill the red color in it
  5. Define a method to display some text by setting position
  6. Call all the methods in main section.







# Import turtle package
import turtle
# Creating a turtle object(pen)
pen = turtle.Turtle()
# Defining a method to draw curve
def curve():
    for i in range(200):
        # Defining step by step curve motion
# Defining method to draw a full heart
def heart():
    # Set the fill color to red
    # Start filling the color
    # Draw the left line
    # Draw the left curve
    # Draw the right curve
    # Draw the right line
    # Ending the filling of the color
# Defining method to write text
def txt():
    # Move turtle to air
    # Move turtle to a given position
    pen.setpos(-68, 95)
    # Move the turtle to the ground
    # Set the text color to lightgreen
    # Write the specified text in 
    # specified font style and size
    pen.write("GeeksForGeeks", font=(
      "Verdana", 12, "bold"))
# Draw a heart
# Write text
# To hide turtle



Heart Using Turtle Graphics

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :

Be the First to upvote.

Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.