Five-pointed star drawn
description
Use turtle graphics library rendering a red five-pointed star, as shown below:
Note: Mac OS
Entry
No
Export
As FIG.
code show as below:
import turtle
turtle.fillcolor("red")
turtle.begin_fill()
count = 1
while count <= 5:
turtle.forward(100)
turtle.right(144)
count += 1
turtle.end_fill()