@gabbyneve/

GabbyNeveDogLover

Python (with Turtle)

No description

fork
loading
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import turtle 

t = turtle.Turtle()
turtle.Screen().bgcolor("black")
colors = ["yellow"]
t.width(2.5)
t.speed("fastest")
t.hideturtle()
def drawpolygon(myturtle, sides):
  for i in range (sides*1):
   myturtle.color(colors[i% len(colors)])
   myturtle.forward(55)
   myturtle.left(99)
   myturtle.forward(50)
   myturtle.right(80)
   myturtle.forward(55)
   myturtle.left(99) 
   myturtle.forward(55)
drawpolygon(t,60)
result
console