how to make a nonagon using turtle in python || explained properly || code with p.k

Опубликовано: 14 Февраль 2026
на канале: code with PK
145
11

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

t = turtle.Turtle()

t.speed(3)
t.color("orange")
t.pensize(4)

wn = turtle.Screen()
wn.bgcolor("black")

t.begin_fill()
t.fillcolor("cyan")

for i in range(9):
t.fd(100)
t.lt(360/9)

t.end_fill()

t.hideturtle()
turtle.done()
=============================================================
thank you for watching this video and dont forgot to subscribe and like my channel
============================================================
will meet in next video