PYTHON TURTLE || HEART SHAPE || CODE IN DESCRIPTION ||

Publié le: 05 avril 2023
sur la chaîne: CODING WORLD
286
23

Hello Everyone! Hope all of you are doing good!
If you are looking for code here, Just follow us on Instagram we have provided code there.
Instagram - codingworld_official
URL - https://instagram.com/codingworld_off...
=============================================================
CODE -
import turtle
from turtle import *

wn = Screen()
wn.bgcolor('white')
t = turtle.Turtle()
t.pencolor('black')
t.pensize(3)
t.speed(400)

def curve():
for i in range(200):
t.rt(1)
t.fd(1)
def heart():
t.fillcolor('pink')
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(message,pos):
x,y=pos
t.penup()
t.goto(x,y)
t.color('black')
style=('Times New Roman', 18, 'italic')
t.write(message,font=style)

write('I',(-68,95))
write('L',(-55,95))
write('O',(-46,95))
write('V',(-30,95))
write('E',(-14,95))
write('Y',(8,95))
write('O',(24,95))
write('U',(43,95))
write('E',(-55,70))
write('X',(-42,70))
write('A',(-25,70))
write('M',(-10,70))
write('P',(8,70))
write('L',(15,70))
write('E',(30,70))
wn.mainloop()

============================================================
Thank You so much. Don't forget to like, share and subscribe Us!


Sur cette page du site, vous pouvez voir la vidéo en ligne PYTHON TURTLE || HEART SHAPE || CODE IN DESCRIPTION || durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur CODING WORLD 05 avril 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 286 fois et il a aimé 23 téléspectateurs. Bon visionnage!