Pythondex
Turtle Python Programs

I Love You Program In Python Turtle With Code

Last updated July 16, 2023 by Jarvis Silva

If you’re a programmer looking to express your love to your crush, and if your crush happens to be a programmer as well, then you’re in luck! Today, I’m going to show you how to propose to your crush using I love you program in python turtle.

We will make this program using a python library called turtle which is a graphics library for python which can be use for drawing anything you want.

If you are a beginner in python programming then don’t worry I will show you everything you need to do to run this program step by step and get you a girlfriend, Now no programmers will be single.

Install and Setup Python

If you are a python programmer who has python already installed you can skip this step. So to install python you need to go to the python website and click download, it will download the latest version of python.

Now you need to run the installer you can click next, and one screen will come where you need to check add python to path after that python will be installed if you want a more detailed guide you can check out this – Installing and setting up python.

Installing Python Turtle

As I have said we will need turtle which is a python library so to install it you need to open a command prompt paste the below code to install respective python library.

To install Turtle use this


pip install turtle

Create and Open Python File

Now you need to create a python file in a new folder and open it in a code editor if you don’t have one I will recommend you to use VS Code or you can use any if you have, In VS Code install the python extension you can read more here – Setting python in VS Code.

After that copy the below I love you code in the python file and you can run the code by opening command prompt and pasting the below command.


python filename.py

Enter your python filename where I said filename, this will open a black window and the program will start to run.

Also read: Draw black panther using python.

I Love You Code In Python Turtle


import turtle

draw = turtle.Turtle()

def curve():
    draw.pen(pencolor="white", pensize=3, speed=5)
    for i in range(200):
        draw.rt(1)
        draw.fd(1)

def heart():
    draw.pen(pencolor="white",fillcolor="red", pensize=3, speed=5)
    draw.shape("turtle")
    draw.shapesize(1,1,1)
    draw.begin_fill()
    draw.lt(50)
    draw.fd(113)
    curve()
    draw.lt(120)
    curve()
    draw.fd(112)
    draw.end_fill()

    draw.hideturtle()


window = turtle.Screen()
window.bgcolor('black')

draw.penup()
draw.goto(-80,300)
draw.pendown()
draw.shapesize(1,2,1)

draw.pen(pencolor="white",fillcolor="yellow", pensize=3, speed=8)

draw.begin_fill()

draw.fd(160)
draw.rt(90)
draw.fd(25)
draw.rt(90)
draw.fd(60)
draw.lt(90)

draw.fd(140)
draw.lt(90)
draw.fd(60)
draw.rt(90)
draw.fd(25)
draw.rt(90)
draw.fd(160)
draw.rt(90)
draw.fd(25)
draw.rt(90)
draw.fd(60)
draw.lt(90)
draw.fd(140)
draw.left(90)
draw.fd(60)
draw.rt(90)
draw.fd(25)

draw.end_fill()

draw.penup()
draw.goto(-550,-20)
draw.pendown()

draw.pen(pencolor="white",fillcolor="yellow", pensize=3, speed=2)
draw.begin_fill()

draw.rt(90)
draw.fd(25)
draw.rt(90)
draw.fd(165)
draw.lt(90)
draw.fd(115)
draw.rt(90)
draw.fd(25)
draw.rt(90)
draw.fd(140)
draw.rt(90)
draw.fd(190)
draw.rt(90)

draw.end_fill()

draw.penup()
draw.fd(140)

draw.fd(70)

draw.pen(pencolor="white",fillcolor="yellow", pensize=3, speed=8)
draw.begin_fill()

draw.rt(90)
draw.fd(190)
draw.lt(90)
draw.pendown()
draw.circle(60)
draw.lt(90)
draw.penup()
draw.fd(20)
draw.rt(90)
draw.pendown()
draw.circle(40)
draw.rt(90)
draw.penup()
draw.fd(20)
draw.lt(90)

draw.end_fill()

draw.fd(100)
draw.pendown()

draw.pen(pencolor="white",fillcolor="yellow", pensize=3, speed=8)
draw.begin_fill()

draw.lt(100)
draw.fd(120)
draw.rt(100)
draw.fd(20)
draw.rt(80)
draw.fd(100)
draw.lt(80)
draw.fd(20)
draw.lt(80)
draw.fd(100)
draw.rt(80)
draw.fd(20)
draw.rt(100)
draw.fd(120)
draw.rt(80)
draw.fd(50)
draw.lt(180)

draw.end_fill()

draw.penup()
draw.fd(100)
draw.pendown()

draw.pen(pencolor="white",fillcolor="yellow", pensize=3, speed=8)
draw.begin_fill()

draw.lt(90)
draw.fd(120)
draw.rt(90)
draw.fd(80)
draw.rt(90)
draw.fd(20)
draw.rt(90)
draw.fd(60)
draw.lt(90)
draw.fd(30)
draw.lt(90)
draw.fd(60)
draw.rt(90)
draw.fd(20)
draw.rt(90)
draw.fd(60)
draw.lt(90)
draw.fd(30)
draw.lt(90)
draw.fd(60)
draw.rt(90)
draw.fd(20)
draw.rt(90)
draw.fd(80)

draw.end_fill()

draw.penup()
draw.rt(180)
draw.fd(200)
draw.pendown()


draw.pen(pencolor="white",fillcolor="yellow", pensize=3, speed=2)
draw.begin_fill()

draw.lt(90)
draw.fd(50)
draw.lt(30)
draw.fd(80)
draw.rt(120)
draw.fd(20)
draw.rt(60)
draw.fd(60)
draw.lt(180)
draw.rt(60)
draw.fd(60)
draw.rt(60)
draw.fd(20)
draw.rt(120)
draw.fd(80)
draw.lt(30)
draw.fd(50)
draw.rt(90)
draw.fd(20)
draw.rt(180)

draw.end_fill()

draw.penup()
draw.fd(120)
draw.pendown()


draw.pen(pencolor="white",fillcolor="yellow", pensize=3, speed=8)
draw.begin_fill()

draw.circle(60)
draw.lt(90)
draw.penup()
draw.fd(20)
draw.pendown()
draw.rt(90)
draw.circle(40)
draw.rt(90)
draw.penup()
draw.fd(20)
draw.lt(90)

draw.end_fill()

draw.fd(100)
draw.circle(60, extent=60)
draw.pendown()

draw.pen(pencolor="white",fillcolor="yellow", pensize=3, speed=8)
draw.begin_fill()

draw.lt(30)

draw.fd(85)
draw.lt(90)
draw.fd(20)
draw.lt(90)
draw.fd(70)
draw.circle(-20, extent=180)
draw.fd(70)
draw.lt(90)

draw.fd(20)
draw.lt(90)
draw.fd(85)
draw.circle(40, extent=180)

draw.end_fill()

draw.penup()

draw.rt(180)
draw.fd(35)
draw.lt(90)
draw.fd(140)
draw.lt(90)
draw.pendown()

heart()

turtle.done()

You will get output like below. As you can see it says I love you and a heart, If you know about turtle then you can modify this code to add more things to it.

I Love You Drawing In Python Turtle

I hope this turtle drawn I love you python will impress your crush and become your girlfriend. If not don’t worry, I also have created a broken heart program which you can create follow here: Broken heart using python turtle.

This was for today. If you found this helpful, great if you want more interesting python programs like this than join our Telegram Channel to get the latest updates of our blog.

Here are some more python guides:

Thank you for watching, have a nice day 🙂