Hey guys new python project check out notes and credits ! #Python #ILovePython
import turtle turtle.bgcolor("black") t = turtle.Pen() t.speed(0) sides = int(turtle.numinput("Number of sides","How many sides do you want in your mega spiral?",4,1,6)) colors = ["red", "yellow", "blue", "green", "purple", "orange"] for m in range(5,75): t.penup() t.forward(m * 4) position = t.position() heading = t.heading() print(position, heading) for n in range(int(m / 2)): t.pendown() t.pencolor(colors[n % sides]) t.forward(2 * n) t.right(360 / sides - 2) t.penup() t.setx(position[0]) t.sety(position[1]) t.setheading(heading) t.left(360 / sides + 2)