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

Pubblicato il: 05 aprile 2023
sul canale di: 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!


In questa pagina del sito puoi guardare il video online PYTHON TURTLE || HEART SHAPE || CODE IN DESCRIPTION || della durata di ore minuti seconda in buona qualità , che l'utente ha caricato CODING WORLD 05 aprile 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 286 volte e gli è piaciuto 23 spettatori. Buona visione!