from turtle import * from kandinsky import fill_rect from random import randint def planete(x,y,n,c,p=3): color(c) penup() goto(x,y) setheading(180) pendown() for r in range(0,n,p): circle(r) penup() fill_rect(0,0,320,222,(0,0,0)) hideturtle() pensize(8) planete(20,60,50,'orange') planete(52,120,85,'black') pensize(2) for i in range(100): t = randint(1,3) c = 80 * t planete(randint(-160,160),randint(-110,110),t,(c,c,c),1)