how to create a hexagon using turtle in python || explained properly || code with p.k

Pubblicato il: 01 giugno 2021
sul canale di: code with PK
49
8

hello guys ,
i am prathamesh and you are watching code with p.k
============================================================
last videos link:-
   • Video  
=============================================================
guys here is code for you
=============================================================
import turtle

t = turtle.Turtle()

t.speed(3)
t.pensize(3)
t.color("yellow")

wn = turtle.Screen()
wn.title("simple hexagon")
wn.bgcolor("black")

t.begin_fill()
t.fillcolor("red")
for i in range(6):
t.fd(150)
t.lt(60) # 360/no.sides = 360/6 = 60
t.end_fill()

t.hideturtle()
turtle.done()
=============================================================
thanks for watching my video and dont forget to like and subscribe my channel
=============================================================
will meet in next video


In questa pagina del sito puoi guardare il video online how to create a hexagon using turtle in python || explained properly || code with p.k della durata di ore minuti seconda in buona qualità , che l'utente ha caricato code with PK 01 giugno 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 49 volte e gli è piaciuto 8 spettatori. Buona visione!