#NiceHexSpiral. py
import turtle
colours=['red','purple', 'blue','green', 'yellow','orang e']
t=turtle.pen ()
turtle.bgcolor ('black')
for x in range (360):
t.pencolor (colors[x%6])
t.forward(x)
t.left (59)
The above code is shows some problems in"qpython ".why ? I am a completely begginer and don't know anything about programming.I just start learning through Bryson Payne book call"tech your kids to code "
import turtle
colours=['red','purple', 'blue','green', 'yellow','orang e']
t=turtle.pen ()
turtle.bgcolor ('black')
for x in range (360):
t.pencolor (colors[x%6])
t.forward(x)
t.left (59)
The above code is shows some problems in"qpython ".why ? I am a completely begginer and don't know anything about programming.I just start learning through Bryson Payne book call"tech your kids to code "