How to draw a star in Python using Turtle

Publié le: 29 mai 2021
sur la chaîne: 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


Sur cette page du site, vous pouvez voir la vidéo en ligne How to draw a star in Python using Turtle durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Programmer Banda 29 mai 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 14,193 fois et il a aimé 477 téléspectateurs. Bon visionnage!