How to draw a star in Python using Turtle

Pubblicato il: 29 maggio 2021
sul canale di: 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


In questa pagina del sito puoi guardare il video online How to draw a star in Python using Turtle della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Programmer Banda 29 maggio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 14,193 volte e gli è piaciuto 477 spettatori. Buona visione!