I have an exercise wherein I have to draw a lot of circles with Python turtle. I have set speed(0) and I am using:
from turtle import*
speed(0)
i=0
while i < 360:
forward(1)
left(1)
i+=1
to draw circles. It takes so long. Is there any faster way?
iisn't initialised. This would produce aNameError. Please give your real code if you want help. Beyond that, if you want to loop a number of times in Python, counting like that is considered bad practice. Usefor _ in range(360):instead. - Gareth Latty