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