Drawing Circles Python
Question: The function is supposed to loop, each time decreasing the size of the circle
by 10 and drawing a new circle, until the size is less than or equal to 0.
What am i missing

    
    
    def circle(x):
        turtle.up()
        turtle.goto(0,0)
        turtle.down()
        turtle.color("blue")
        turtle.circle(x)
        if x>0:
            turtle.up()
            turtle.goto(0,0)
            turtle.down()
            turtle.color("blue")
            turtle.circle(x-10)
        else:
            turtle.up()
            turtle.goto(0,0)
            turtle.down()
            turtle.color("blue")
            turtle.circle(x)
    print(circle(80))
    


Answer: Here is a working version. Added recursion `circle(x-10)`, removed redundant
code, added `turtle.done()` to stop the app from crashing.

    
    
    import turtle
    def circle(x):
        turtle.up()
        turtle.goto(0,0)
        turtle.down()
        turtle.color("blue")
        turtle.circle(x)
        if x>0:        
            circle(x-10)    
    circle(80)
    turtle.done()
    

