QPython is an Android Python engine primarily designed for Python and AI learners. It offers a range of impressive features to enhance Python programming experience.
Hi there.I try to run turtle spiral codes in qpython 3 but it can't run.I don't understand way.please help
NiceHexSpiral.py
import turtle
colours=[‘red’,‘purple’,‘blue’,‘green’,‘yellow’,‘orange’]
t=turtle.pen ()
turtle.bgcolor (‘black’)
for x in range (360):
t.pencolor (colors[x%6])
t.forward(x)
t.left (59)
Hi there.I try to run turtle spiral codes in qpython 3 but it can't run.I don't understand way.please help
NiceHexSpiral.py
import turtle colours=[‘red’,‘purple’,‘blue’,‘green’,‘yellow’,‘orange’] t=turtle.pen () turtle.bgcolor (‘black’) for x in range (360): t.pencolor (colors[x%6]) t.forward(x) t.left (59)