How to draw a star in Python using Turtle

Опубликовано: 12 Апрель 2025
на канале: Programmer Banda
14,066
482

How to draw a star in Python using Turtle

import turtle
t = turtle.Turtle()
line_length = 200
col = 'red'
t.fillcolor(col)
t.begin_fill()
for _ in range(5):
t.forward(line_length)
t.right(144)
t.end_fill()
turtle.mainloop()

If you found the video valuable, please leave a like and subscribe ❤️ It helps the channel grow and helps me pumping out more such content.

#shorts
#python3​​ #forloop​ #forelse​ #programming​ #algorithm​ #programmintips​ #pythontips​ #codingtips​ #coding​ #developmnet​ #dev