How to draw a “heart” with Python3

Video Tutorial(in Chinese)

Heart 0

word = "Love"

shape = []
for i in range(12, -12, -1):
    row = ''
    for j in range(-30, 30):
        x = j * 0.05
        y = i * 0.1
        f = (x ** 2 + y ** 2 - 1) ** 3 - x ** 2 * y ** 3
        if(f < 0):
            row += word[(j) % len(word)]
        else:
            row += ' '
    shape.append(row);
print('\n'.join(shape))

Heart 1

import time
def display_heart(word):
    shape = []
    shape.append('\n' * 30)
    for i in range(12, -12, -1):
        row = ''
        for j in range(-30, 30):
            x = j * 0.05
            y = i * 0.1
            f = (x ** 2 + y ** 2 - 1) ** 3 - x ** 2 * y ** 3
            if (f <= 0):
                row += word[(j + i + 100) % len(word)]
            else:
                row += ' '
        shape.append(row);
    print('\n'.join(shape))


def display(sentence):
    s_list = sentence.split(' ')
    for word in s_list:
        display_heart(word + ' ')
        time.sleep(1)

while True:
    display("XXH Be My Girl")

Heart 2

import turtle
import time

def draw_curve():
    for i in range(200):
        turtle.right(1)
        turtle.forward(1)


def draw_heart(speed=10):
    turtle.speed(speed)
    turtle.color("red", "pink")

    turtle.begin_fill()
    turtle.left(140)
    turtle.forward(111.65)
    draw_curve()

    turtle.left(120)
    draw_curve()
    turtle.forward(111.65)
    turtle.end_fill()


def draw(name, sentence, speed=10):
    turtle.setup(900,400)
    wn = turtle.Screen()
    wn.title("Heart")
    wn.bgcolor("lightgreen")
    turtle.width(2)
    turtle.ht()

    draw_heart()

    t = turtle.Turtle()
    turtle.color('deep pink')
    style = ('Courier', 30, 'italic')
    turtle.penup()
    time.sleep(0.8)
    turtle.setpos(0, 75)
    turtle.pendown()
    turtle.write(name, font=style, align='center')


    time.sleep(3)
    turtle.penup()
    turtle.setpos(0, -100)
    turtle.pendown()
    turtle.write(sentence, font=style, align='center')
    turtle.penup()
    wn.mainloop()

draw("王某某", "I Love You!", 10)