Rainbow Generator-Python Program for Class 12
Rainbow Generator-Python Program Source Code: import turtle colours= wn=turtle.Screen() wn.bgcolor('black') skk=turtle.Turtle() skk.speed(0) skk.width(1.5) skk.hideturtle() skk.left(90) x=0 a=100 b=45 while x<len(colours): skk.color(colours) skk.penup() skk.setpos(b,0) skk.pendown() skk.circle(a,180,4000) skk.right(180) x=x+1 b=b+1.5 a=a+1.5 turtle.mainloop()…