How to draw a star in Python using Turtle

Published: 29 May 2021
on channel: Programmer Banda
14,193
477

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


On this page of the site you can watch the video online How to draw a star in Python using Turtle with a duration of hours minute second in good quality, which was uploaded by the user Programmer Banda 29 May 2021, share the link with friends and acquaintances, this video has already been watched 14,193 times on youtube and it was liked by 477 viewers. Enjoy your viewing!