Creating 16(4x4) circles using nested for loops with python turtle module
import turtle as t
leng = 40
for i in range(-200, 200, 100):
for j in range(-200, 200, 100):
t.pu()
t.goto(i, j)
t.pd()
t.circle(leng)
t.exitonclick()
import turtle as t: Turtle will be considered as t.
leng = 40: The length of the circle radius will be 40.
for i in range(-200, 200, 100): For i in range it will be the numbers start with -200, end with 200, and the step is 100.
for j in range(-200, 200, 100): For j in range it will be those numbers start with -200, end with 200, and the step is 100.
t.pu(): It means pen up that will stop drawing.
t.goto(i, j): It will go to the coordinates i and j.
t.pd(): It means pen down that will start drawing again.
t.circle(leng): The length of the circle radius will be 40.
t.exitonclick(): It will exit when clicked.