Make a Heart ❤️ by python code

 Hello guys another One I make it.It is Heart and Love.We love anyone from our pure heart.

So,i make heart by python code.Very easy and simply i make it.

If you can try you can make.So,I share this code in here .you can just copy it .

first make sure please Subscribe my youtube channel.: SK KHANDOKAR

First  you need to import turtle ,so import it on your IDE.


 

THE CODE is here _

import turtle
from turtle import *
wn=Screen()
wn.bgcolor('black')
t=turtle.Turtle()
t.pencolor('red')
t.pensize(8)
def curve():
    for i in range (200):
        t.rt(1)
        t.fd(1)
col=['green','pink','blue','green','gray']
i=0
def heart():
    t.fillcolor(col[i])
    t.begin_fill()
    t.lt(140)
    t.fd(113)
    curve()
    t.lt(120)
    curve()
    t.fd(112)
    t.end_fill()
heart()
t.ht()
def write(msg,pos):
    x,y=pos
    t.penup()
    t.goto(x,y)
    t.color('white')
    style=('FF Blur',15,'bold')
    #Stencil Std
    t.write(msg,font=style)
# write('I',(-68,95))
# write('L',(-55,95))
# write('O',(-42,95))
# write('V',(-27,95))
# write('E',(-14,95))
# write('Y',(10,95))
# write('O',(22,95))
# write('U',(38,95))
#
#
# #bold
write('I',(-92,95))
write('L',(-80,95))
write('O',(-69,95))
write('V',(-54,95))
write('E',(-41,95))
write('M',(-19,95))
write('Y',(-3,95))
write('F',(15,95))
write('R',(27,95))
write('I',(41,95))
write('E',(45,95))
write('N',(58,95))
write('D',(70,95))
write('S',(83,95))
#italic
# write('I',(-92,95))
# write('L',(-80,95))
# write('O',(-70,95))
# write('V',(-56,95))
# write('E',(-43,95))
# write('M',(-21,95))
# write('Y',(-4,95))
# write('F',(14,95))
# write('R',(26,95))
# write('I',(41,95))
# write('E',(45,95))
# write('N',(58,95))
# write('D',(71,95))
# write('S',(83,95))


wn.mainloop()

copy and paste on your IDE.If you face any problem then you can contact on youtube video comment box.

Surely I response you.So,Enjoy it now.

Comments