Hey i been workn on this code for a few days now and im stuck!! i gotta make sum nested circles ... but the code i have here draws a bunch of circles but they are connected :'( and i tryed everythin T.up, T.forward, T.goto ... all of that .... can n e one help me please????
def drawPolygon(T, sidelen, numsides):
turnAngle = 360 / numsides
for i in range(numsides):
T.forward(sidelen)
T.right(turnAngle)
def drawCircle(T, radius):
circumference = 2 * 3.1415 * radius
sidelen = circumference / 360
drawPolygon(T, sidelen, 360)
def draw_nested_circles(T, num_circles, min_rad):
for radius in range(10, num_circles * 10+1, 10):
drawCircle(T, radius)