Write a python code using tracy turtle to draw the following shape

[SOLVED] Write a python code using tracy turtle to draw the following shape
See Answers (1)

Suggested Answer

Answer:import turtlet = turtle.Turtle()R = 20N = 8def rect(x,y,w):  t.penup()  t.setpos(x,y)  t.pendown()  for _ in range(4):    t.left(90)    t.forward(w)rect(0,0,R*N)rect(R*N,0,R*N)rect(0,-R*N,R*N)rect(R*N,-R*N,R*N)for x in range(1,N+1):  t.penup()  t.setpos(0,-R*x)  t.pendown()  t.circle(R*x)Explanation:Not a turtle expert, but this seems to do the job.

Related Question in Computers and Technology