import turtle as t
t.bgcolor("black")
t.speed(0)
n = 100
colors = ["green", "red", "blue"]
for i in range(3):
t.forward(100)
t.left(120)
t.color(colors[i])
for x in range(n):
t.circle(50)
t.left(360/n)
t.exitonclick()
import turtle as t:Turtle will become the letter t.
t.bgcolor("black"):The background color will be black.
t.speed(0):The speed of the turtle will be the fastest.
n = 100: The range will be identified as n.
colors = ["green", "red", "blue"]: The colors will be green, red, and blue.
for i in range(3): Repeat 3 times to draw triangle.
t.forward(100): The side length of triangle will be 100.
t.left(120): Turn the turtle left by 120 angle.
t.color(colors[i]): Set the turtle color by color list.
for x in range(n): Make a loop for 100 times.
t.circle(50): The circle radius will be 50.
t.left(360/n): Then it will run 360/n left.
t.exitonclick(): It will be exited on click.