from turtle import * from random import * F='18!23!3!30!53!11!2!8!5!55!32!9!3!5305!40!6!3!8!1!3!33!D22!2!5!4!6!1!4!4!3!4!1!2!12!1!2!10!28!11260!2!720124!12!25!11!73098E5!29!66043!223!1B51' def f(s=1): global i if F[i]=='!':i,s=i+1,-1 i+=1 return s*int(F[i-1],16) def g(a,b,j): return 3*a+2*random()+(b-a)*j/3 x=y=i=0 penup() while i<len(F): u,v=x,y x+=f() y+=f() for j in range(9): goto(90+g(u,x,j),-60-g(v,y,j)) pensize(not(18<i<23)) circle(1) pendown() hideturtle()