For my valentine

import turtle

s = turtle.getscreen()
t = turtle.Turtle()
turtle.title("Happy Valentine's Day!")
turtle.bgcolor("red")
t.pencolor("white")
t.fillcolor("white")
t.up()
t.goto(-40,0)
t.down()
t.dot(100)
t.up()
t.goto(40,0)
t.down()
t.dot(100)
t.up()
t.goto(80,-30)
t.down()
t.begin_fill()
for i in range(3):
    t.right(120)
    t.fd(160)
t.end_fill()

t.color('white')
t.up()
t.goto(0,150)
t.down()
style = ('Courier', 30, 'italic')
t.write('I love you!', font=style, align='center')
t.hideturtle()

input("I love you!")

Leave a comment