
CodePudding user response:




CodePudding user response:











CodePudding user response:
This, in python implementationCodePudding user response:
Probably is that
The import turtle
S=5
C=[' red 'and' purple ', 'green', 'yellow' and 'blue']
Y=0
Turtle. Bgcolor (' black ')
While True:
For I in range (0, 12) :
Turtle. Pencolor (c [y])
Turtle. Forward (s)
Turtle. Left (30)
S +=1
Y +=1
If y==5:
Y=0