un circulo que rebote
from turtle import * from random import * def xrandomcolor(): r = random() g = random() b = random() return(r, g, b) def randomplace(): penup() x = randint(-100, 100) y = randint(-100, 100) goto(x, y) pendown() def randomheading(): setheading(randint(1, 360)) def drawrectangle(): randomcolor() randomplace() hideturtle() length = randint(10, 100) height = randint(10, 100) begin_fill() forward(length) right(90) forward(height) right(90) forward(length) right(90) forward(height) right(90) end_fill() def drawstar(): randomcolor() randomplace() randomheading() begin_fill() size = randint(20