from turtle import * from random import * color(30,140,0) setheading(30) def f1(x): return -100 def f2(x): return 80 + 9 * x / 4 def trait(f,p): xd = -80 while xd < 80: ps = randint(4,7) penup() x,y = xd, f(xd) goto(x, y) pendown() pensize(ps) while y < 80 - 9 * x / 4: fd(2) (x, y) = position() xd += ps + p trait(f1,12) trait(f2,1) penup() goto(0,92)