Ask coding questions

← Back to all posts
turtle question
DeviPayne (0)

in turtle, draw a series of circles where each is half the diameter of the previous one?

ash15khng (650)

Just get a variable storing the size of the circle.
Then do something like this.

size = 128
while size > 1:
    # draw circle code
    size /= 2

Every time the loop runs it draws a circle then halves the size until it reaches 1.