Python [Testing a Fun Easy Code for School] #Shorts
Channel:
Subscribers:
8,480
Published on ● Video Link: https://www.youtube.com/watch?v=dPegJ0ywPYg
#python #kathacro
Here's the code (I didn't write it, not sure who did. Sorry. If it was you, lemme know!):
#NiceHexSpiral.py
import turtle
colors=['red', 'purple', 'blue', 'green', 'yellow', 'orange']
t=turtle.Pen()
t.speed(0)
turtle.bgcolor('black')
for x in range (360):
t.pencolor(colors[x%6])
t.width(x/100+1)
t.forward(x)
t.left(59)
Other Videos By kathacro
Tags:
#shorts
#python
#easyprogramming
#easycode
#turtlegraphics
#kathacro