How to Draw a Star With 8 Lines of Python Code | Turtle | Code Ground

Опубликовано: 21 Февраль 2026
на канале: Code Ground
1,545
19

How to make or Draw a Star using Turtle in python. Turtle Tutorial. Python Projects.
Like Facebook page:   / codeground000  
instagram:   / codeground1  

Free Code:

import turtle

def star(size,color):
turtle.fillcolor(color)
turtle.begin_fill()

for i in range(5):
turtle.forward(size)
turtle.right(144)
turtle.end_fill()

star(300,"red")

Make a Portfolio Website Using typedJs
-------------------------------------------------------------------
   • Portfolio website design using html and cs...  

Instagram login-page using html and css
--------------------------------------------------------------------
   • Instagram Homepage design in html and css ...  

Get Covid19 Data Using Python
--------------------------------------------------------------
   • Corona Virus(Covid19) Update Using Python ...  


For More Videos Please Subscribe to my Channel.
https://www.youtube.com/codeground?su...

#turtle #python #CG

Music Credits:
Track: Secret To Happiness — JayJen [Audio Library Release]
Music provided by Audio Library Plus
Watch:    • Secret To Happiness — JayJen | Free Backgr...  
Free Download / Stream: https://alplus.io/secret-happiness